🎉 Commit of go-promises
This commit is contained in:
commit
5d84d26c3a
13 changed files with 238 additions and 0 deletions
10
internal/struct.go
Normal file
10
internal/struct.go
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
package internal
|
||||
|
||||
type User struct {
|
||||
Name string `json:"name"`
|
||||
Age int `json:"age"`
|
||||
}
|
||||
|
||||
func GetUser(name string, age int) User {
|
||||
return User{name, age}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue