Files
go/hello/hello.go

25 lines
311 B
Go
Raw Permalink Normal View History

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
}
2025-10-19 09:20:58 +00:00
var alex = User{
Name: "ali",
}
// Hello writes a welcome string
func Hello() string {
return "Hello, " + alex.Name
}