Skip to content

Instantly share code, notes, and snippets.

Avatar

Saman Shafigh SamanShafigh

View GitHub Profile
View lambda-f4.go
package main
import (
"fmt"
"github.com/aws/aws-lambda-go/lambda"
)
// Event defines your lambda input/output data structure,
type Event struct {
View lambda-f3.go
package main
import (
"fmt"
"github.com/aws/aws-lambda-go/lambda"
)
// Event defines your lambda input/output data structure,
type Event struct {
View lambda-f2.go
package main
import (
"fmt"
"math/rand"
"github.com/aws/aws-lambda-go/lambda"
)
// InEvent defines your lambda input data structure,
View lambda-f1.go
package main
import (
"fmt"
"github.com/aws/aws-lambda-go/lambda"
)
// Event defines your lambda input and output data structure,
// and of course you can have different input and output data structure
@SamanShafigh
SamanShafigh / App(React Component Dependency Injection).js
Last active Jun 9, 2021
React Component Dependency Injection (Dynamically loading components)
View App(React Component Dependency Injection).js
import React, { Component } from 'react';
import ComponentContainer from './ComponentContainer';
class App extends Component {
render() {
let components = ['D1', 'D2', 'D3'];
return (
<div>
<h2>Dynamic Components Loading</h2>