Last active
January 31, 2022 23:36
-
-
Save ihcsim/5bde22a6a20c0e5398820b873eca000b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Service struct { | |
name string | |
namespace string | |
} | |
func main() { | |
svcs := []Service{ | |
{ | |
name: "nginx", | |
namespace: "default", | |
}, | |
{ | |
name: "haproxy", | |
namespace: "default", | |
}, | |
} | |
nginx := svcs[0] | |
fmt.Printf("%+v\n", nginx) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment