Documentation ¶
Overview ¶
provides a simple type for representing characters who may be used throughout the application as narrarators.
Characters have a name and a URL to an avatar image.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Character ¶
type Character struct {
// contains filtered or unexported fields
}
func NewCharacter ¶
creates a new character with a randomized id
func (Character) MarshalJSON ¶
JSON marshals to {id:int, name:string, avatarURL:string}
type Characters ¶
type Characters []Character
Click to show internal directories.
Click to hide internal directories.