data

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 1 Imported by: 1

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL