user

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID     string
	Name   string
	Avatar image.URLs
	// contains filtered or unexported fields
}

User data.

func (*User) Fetch

func (i *User) Fetch() (err error)

Fetch additional data from pixiv single user api, only fetch once for same struct.

func (*User) FetchWithClient

func (i *User) FetchWithClient(c client.Client) (err error)

FetchWithClient do fetch with given client.

func (User) URL added in v0.3.0

func (i User) URL() *url.URL

URL to view web page.

func (User) URLWithClient added in v0.3.0

func (i User) URLWithClient(c client.Client) *url.URL

URLWithClient to view web page.

Jump to

Keyboard shortcuts

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