Skip to content

Instantly share code, notes, and snippets.

@tebeka
Created April 27, 2022 06:15
Show Gist options
  • Save tebeka/6136b618068d05d39b433303ac5b8a20 to your computer and use it in GitHub Desktop.
Save tebeka/6136b618068d05d39b433303ac5b8a20 to your computer and use it in GitHub Desktop.
package main
import "fmt"
type Agent struct {
Name string
ID int
}
func main() {
q := Agent{
Name: "Q",
}
fmt.Printf("%+v\n", q) // {Name:Q ID:0}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment