Zum Inhalt

Structs

Anonymous structs

variableName := struct{
    code string
    name string
}{
    "01", "John"
}

Array of anonymous structs

variableName := []struct{
    code string
    name string
}{
    {"01", "John"},
    {"02", "Mary"},
}

Feedback / Kontakt

Wenn Sie Fragen oder Anregungen zum Artikel Structs in Go haben, senden Sie mir bitte eine E-Mail an: go+struct@technotes.jakoubek.net