Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Author ¶
type Author struct { // ID is the unique identifier of the author. ID string `json:"id"` // Name is the name of the author. Name string `json:"name"` // PicURL is the URL of the author's picture. PicURL string `json:"picUrl"` }
Author represents an author.
type AuthorBuilder ¶ added in v0.1.1
type AuthorBuilder interface { WithId(id string) AuthorBuilder WithName(name string) AuthorBuilder WithPicUrl(picUrl string) AuthorBuilder Build() Author }
AuthorBuilder is the interface that builds an author.
func NewAuthorBuilder ¶ added in v0.1.1
func NewAuthorBuilder() AuthorBuilder
NewAuthorBuilder creates a new author builder.
Click to show internal directories.
Click to hide internal directories.