mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
8 lines
208 B
Swift
8 lines
208 B
Swift
func main(args: [String:Any]) -> [String:Any] {
|
|
if let name = args["name"] as? String {
|
|
return [ "greeting" : "Hello \(name)!" ]
|
|
} else {
|
|
return [ "greeting" : "Hello stranger!" ]
|
|
}
|
|
}
|