utils

package
v0.0.0-...-c12cb85 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttrContains

func AttrContains(attr []html.Attribute, key string) (string, bool)

func AttrEquals

func AttrEquals(attr []html.Attribute, key string, value string) bool

func Get

func Get[T any](data map[string]interface{}, key string) (out T)

func GetArray

func GetArray[T any](data map[string]interface{}, key string) []T

func GetFlagBool

func GetFlagBool(cmd types.ICommand, key string) bool

func GetFlagInt

func GetFlagInt(cmd types.ICommand, key string) int

func GetFlagIntPtr

func GetFlagIntPtr(cmd types.ICommand, key string) *int

func GetFlagIntSlice

func GetFlagIntSlice(cmd types.ICommand, key string) []int

func GetFlagString

func GetFlagString(cmd types.ICommand, key string) string

func GetFlagStringPtr

func GetFlagStringPtr(cmd types.ICommand, key string) *string

func GetFlagStringSlice

func GetFlagStringSlice(cmd types.ICommand, key string) []string

func GetPtr

func GetPtr[T any](data map[string]interface{}, key string) *T

func ISBNNormalize

func ISBNNormalize(isbn string) string

func NewLibraryFromMap

func NewLibraryFromMap(_ types.ICommand, data any) (types.LibrarySettings, error)

func NewSeriesFromMap

func NewSeriesFromMap(cmd types.ICommand, data any) (types.Series, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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