Hello. I'm new to golang. I have to create a struct type which has fields that can be one of a range of specific values (the equivalent of enumerations in JAVA or other languages)
This is the struct <https://lh3.googleusercontent.com/-UdHqH0g5GoI/WEhWYtxQ1sI/AAAAAAAAAWI/NWEZN9Hnls44_qkeXAoviPtCvlC2CS13ACLcB/s1600/Capture.PNG> for example, the field *scope *can be either *local *or *non-local*. I tried to define a type FaceScope for that which can be one of two constants but i guess i got the syntax wrong. <https://lh3.googleusercontent.com/-P703tKGDH14/WEhXYZiKIXI/AAAAAAAAAWM/swfTb-jingQSwJJl0eidUZgSz5Q-sMI-wCLcB/s1600/Capture.PNG> -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.