« first day (59 days earlier)    last day (15 days later) » 

6:48 AM
0
Q: What (exactly) does the type keyword do in go?

LogicalBranchI've been reading A Tour of Go to learn Go and so far it's going good. Currently I'm on the Struct Fields Lesson and here is the sample code from the right hand side: package main import "fmt" type Vertex struct { X int Y int } func main() { v := Vertex{1, 2} v.X = 4 fmt.Println(v....

 

« first day (59 days earlier)    last day (15 days later) »