2017-01-01ãã1ã¶æéã®è¨äºä¸è¦§
æè¿ãGolang 㧠Enum ããã£ã¼ã«ãã«æ㤠struct ãããæãã« json ã¨ã³ã³ã¼ã / ãã³ã¼ããããè¡åã«é§ãããäºããã£ãã®ã§ããã®æã®ã¡ã¢ã§ãã æ®éã« json.Marshal ãã ä¾ãã°ã以ä¸ã®ãã㪠Userã® struct ãå®ç¾©ããã¨ããã type UserRole int câ¦