possible ideas: go profiling tools. versioning best practices. distributed messaging using a technology like kafka. networking: load balancing and reverse proxy setups. any learnings from work too that helped you be a better engineer would be awesome, like more practical stuff@@esoterictech
Hey thanks man, I just started learning Go as my next programming language and the concept of anonymous functions and closures was alien to me. This helped a lot, subbed and looking forward to new tutorials!
Hey, man do you think you could post a shareable link of your code to the Go playground in the descriptions? That way we can reference your code as we practice on our own. Another great vid btw
I'm thinking this is simple 😂 closure func main(){add := func(x,y int)int{return x+y}fmt.Println(add(1,1))} | and btw the last question I asked I want to edit the slice play.golang.org/p/R1dtk_31cKy here is the link again like edit a specific value which we do it in python like s.setGrade(grade[0]) so it will change in only index 0 and value remains same as before help me with I'm so curious and waiting for answer for days!
UPDATED - Cookie, If you want to change a specific value in the slice, your function should accept 2 parameters: 1. The index that you want to be updated 2. The NEW value that you want to set at that index You setGrade function should look like this: func (s *Student) setGrade(index int, newValue int) { s.Grade[index] = newValue }
Amazing examples to help understand closures!
Really good video. Thank you so much!
No problem. Thanks for watching!
would love to see advanced go videos and tips for work as a go dev
Any advanced topics in particular?
possible ideas: go profiling tools. versioning best practices. distributed messaging using a technology like kafka. networking: load balancing and reverse proxy setups. any learnings from work too that helped you be a better engineer would be awesome, like more practical stuff@@esoterictech
Thanks for this I do want to look up slice in the docs for details because it seems like it either uses one sorting algo or it would know many of them
Hey thanks man, I just started learning Go as my next programming language and the concept of anonymous functions and closures was alien to me. This helped a lot, subbed and looking forward to new tutorials!
Can Go be used for front-end development?
awesome content
Hey, man do you think you could post a shareable link of your code to the Go playground in the descriptions? That way we can reference your code as we practice on our own.
Another great vid btw
I'm thinking this is simple 😂 closure func main(){add := func(x,y int)int{return x+y}fmt.Println(add(1,1))} | and btw the last question I asked I want to edit the slice play.golang.org/p/R1dtk_31cKy here is the link again like edit a specific value which we do it in python like s.setGrade(grade[0]) so it will change in only index 0 and value remains same as before help me with I'm so curious and waiting for answer for days!
UPDATED - Cookie, If you want to change a specific value in the slice, your function should accept 2 parameters:
1. The index that you want to be updated
2. The NEW value that you want to set at that index
You setGrade function should look like this:
func (s *Student) setGrade(index int, newValue int) {
s.Grade[index] = newValue
}
I just provided an answer on stackoverflow stackoverflow.com/questions/66839488/index-slice-within-main-func-when-using-setgrade/66877097#66877097
@@esoterictech thanks! go is wired