Sign in
go
/
tour
/
13207171058208a24c208b00106266988c6ac63c
/
.
/
prog
/
struct-fields.go
blob: 490aff5934b14210a0853f38bbf15a7d5078d435 [
file
] [
log
] [
blame
]
package main
import "fmt"
type Vertex struct {
X int
Y int
}
func main() {
v := Vertex{1, 2}
v.X = 4
fmt.Println(v.X)
}