I followed a tutorial, but all the types were of values int, someone could help me how to manage it?
The value I enter is ‘Maggio’ and the value to display is ‘E’
type Month string
const (
Gennaio Month = "A"
Febbraio Month = "B"
Marzo Month = "C"
Aprile Month = "D"
Maggio Month = "E"
Giugno Month = "H"
Luglio Month = "L"
Agosto Month = "M"
Settembre Month = "P"
Ottobre Month = "R"
Novembre Month = "S"
Dicembre Month = "T"
)
var months= []string{"Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre"}
It is always helpful for other people which have similar problems, when you post a short wrap up of your problem and how you were able to solve it finally.