
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
package enum type SimpleSeason int const ( _ SimpleSeason = iota Spring Summer Autumn Winter ) va... package enum type SimpleSeason int const ( _ SimpleSeason = iota Spring Summer Autumn Winter ) var simpleSeasonStrings = [4]string{"未定義", "春", "夏", "秋", "冬"} func (s SimpleSeason) String() string { return simpleSeasonStrings[s] } package main import ( "fmt" "github.com/ikngtty/playground/enum" ) func main() { fmt.Println(enum.Summer) // -> 夏 }