Skip to content

Instantly share code, notes, and snippets.

@ihcsim
Last active January 31, 2022 23:36
Show Gist options
  • Save ihcsim/5bde22a6a20c0e5398820b873eca000b to your computer and use it in GitHub Desktop.
Save ihcsim/5bde22a6a20c0e5398820b873eca000b to your computer and use it in GitHub Desktop.
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