Why can't I change the values in a range of type structure?
问题 This is my first post so please "Go" easy on me. :) ... I am quite familiar with many traditional programming languages but I am new to Go and having trouble understanding the use of slices and ranges. The program code and comments below illustrate my consternation. Thank you! package main import ( "fmt" "time" ) type myStruct struct { Name string Count int } Wrote my own Mod function because I could not find on in the Go libraries. func modMe(mod int, value int) int { var m int var ret int m