util

package
v0.0.0-...-f377bbc Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// correct format but invalid isbn digits
	ErrInvalidIsbn = errors.New("invalid isbn digits")
)

Functions

func IsbnCheck

func IsbnCheck(value string) (bool, error)

func IsbnExtract

func IsbnExtract(value string) (string, error)

func LowerCase

func LowerCase(s string) string

func NameCase

func NameCase(s string) string

func PrintDateFormat

func PrintDateFormat(date null.Time, format string) string

func PrintDateFull

func PrintDateFull(date null.Time) string

func PrintDateMonthYear

func PrintDateMonthYear(date null.Time) string

func SentenceCase

func SentenceCase(s string) string

func Sort

func Sort[T constraints.Ordered](s []T)

func TitleCase

func TitleCase(s string) string

func ToJSON

func ToJSON(v interface{}) ([]byte, error)

func TrimMultiLine

func TrimMultiLine(s string) string

trim \n, \t

func UnmarshalXml

func UnmarshalXml(f io.Reader, v interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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