more simplify structure

This commit is contained in:
uta-mori
2020-07-28 13:21:40 +09:00
parent 216335b01c
commit d68bbbd16b
2 changed files with 3 additions and 4 deletions

22
hello/hello.go Normal file
View File

@@ -0,0 +1,22 @@
package hello
// User user type
type User struct {
ID int64
Name string
Addr *Address
}
// Address address type
type Address struct {
City string
ZIP int
LatLng [2]float64
}
var alex = User{}
// Hello writes a welcome string
func Hello() string {
return "Hello, " + alex.Name
}