Equivalent of #map in ruby in golang
- by Oct
I'm playing with Go and run into something I'm unable to find in Google, although there is certainly something that exists:
I'm using the following struct:
type Syntax struct {
name string
extensions *regexp.Regexp
}
type Scanner struct {
classifier * bayesian.Classifier
save_file string
name_to_syntax map[string] *Syntax
…