Sign in
go
/
tour
/
c7374255f627de1d833c24ab73b75f6e7c25ef75
/
.
/
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)
}