Files
fx-serverless/examples/functions/func.go
Minghe Huang f86c0b87ce refine dir
2017-11-01 09:48:15 +08:00

18 lines
189 B
Go

package main
type Input struct {
A int32
B int32
}
type Output struct {
Sum int32
}
func Fx(input *Input) (output *Output) {
output = &Output{
Sum: input.A + input.B,
}
return
}