type MyStruct struct {
Val int
}
func myfunc() MyStruct {
return MyStruct{Val: 1}
}
func myfunc() *MyStruct {
return &MyStruct{}
}
func myfunc(s *MyStruct) {
s.Val = 1
}
Write your response...
I'm learning go web programming and understand everthing but I'm getting lost in this 3 apparently simple lines: ...I have read the go src for the following lines and this is what I can infer: htt
Crazy Gopher
General
Posted • Nov 17 2019
Not sure if this is the best place but I'm having a hard time deploying my app with go 1.11 and go modules. My directory structure is pretty simple. When I deploy and I have the Go111module variab
Lex Hoffman
Tools & Libraries
Posted • Mar 16 2019