icon

package
v0.0.0-...-d4efe1e Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotSeparatorError    = errors.New("not have a x separator")
	NotHaveAValidSizes   = errors.New("not have a valid 2 sizes params")
	NotValidStringAsUint = errors.New("not a valid string as uint64")
)

Functions

This section is empty.

Types

type Icon

type Icon struct {
	Size *Size  `json:"size"`
	Src  string `json:"src"`
}

func ParseIconListFromDir

func ParseIconListFromDir(dirname string) ([]*Icon, error)

func (*Icon) MarshalJSON

func (i *Icon) MarshalJSON() ([]byte, error)

type Size

type Size struct {
	Width, Height uint64
}

func UnmarshalSize

func UnmarshalSize(data []byte) (*Size, error)

Jump to

Keyboard shortcuts

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