Improved code documentation
This commit is contained in:
@ -8,13 +8,13 @@ func init() {
|
||||
}
|
||||
}
|
||||
|
||||
// AnimeCharacter ...
|
||||
// AnimeCharacter contains the information for a character and his role in an anime.
|
||||
type AnimeCharacter struct {
|
||||
CharacterID string `json:"characterId" editable:"true"`
|
||||
Role string `json:"role" editable:"true" datalist:"anime-character-roles"`
|
||||
}
|
||||
|
||||
// Character ...
|
||||
// Character returns the referenced character.
|
||||
func (char *AnimeCharacter) Character() *Character {
|
||||
character, _ := GetCharacter(char.CharacterID)
|
||||
return character
|
||||
|
Reference in New Issue
Block a user