Make structs public to demonstrate add tags

This commit is contained in:
Alexander Krieg
2019-06-15 12:10:20 +00:00
parent 378e01a632
commit 54d7510529

View File

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