Skip to content

Commit

Permalink
teamにもomitemptyタグを付与
Browse files Browse the repository at this point in the history
  • Loading branch information
Shugo Kawamura committed Aug 12, 2023
1 parent b60e6e5 commit 979f385
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions match.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,20 @@ func GetDefaultMatchBO1() Match {
}

type Spectators struct {
Name string `json:"name"`
Players map[string]string `json:"players"`
Name string `json:"name,omitempty"`
Players map[string]string `json:"players,omitempty"`
}
type Team struct {
ID string `json:"id"`
Players map[string]string `json:"players"`
Coaches map[string]string `json:"coaches"`
Name string `json:"name"`
Tag string `json:"tag"`
Flag string `json:"flag"`
Logo string `json:"logo"`
SeriesScore int `json:"series_score"`
MatchText string `json:"matchtext"`
FromFile string `json:"fromfile"`
ID string `json:"id,omitempty"`
Players map[string]string `json:"players,omitempty"`
Coaches map[string]string `json:"coaches,omitempty"`
Name string `json:"name,omitempty"`
Tag string `json:"tag,omitempty"`
Flag string `json:"flag,omitempty"`
Logo string `json:"logo,omitempty"`
SeriesScore int `json:"series_score,omitempty"`
MatchText string `json:"matchtext,omitempty"`
FromFile string `json:"fromfile,omitempty"`
}

// G5Match 別の構造体にG5Matchインターフェースを実装すれば型が違っても変換してGet5に渡してくれる
Expand Down

0 comments on commit 979f385

Please sign in to comment.