> For the complete documentation index, see [llms.txt](https://yingshaoxo.gitbook.io/go-tutorial-for-pythoner/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yingshaoxo.gitbook.io/go-tutorial-for-pythoner/the-structure-of-go/struct.md).

# Struct

Golang's struct is just like C++'s struct.

```go
package main

import "fmt"

type box struct {
    length int16
    width int16
    hight int16
}

func main(){
    a_box := box{length: 3, width: 2, hight: 1}
    another_box := box{3, 2, 1} //if you got varible well_named, this way just fine

    fmt.Println(a_box.length)
    fmt.Println(another_box.width)
}
```
