tools

package
v0.0.0-...-881cb2f Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepCopy

func DeepCopy(from, to any) error

func GetMyIP

func GetMyIP() (net.IP, error)

func RndHash

func RndHash(n int) string

RndHash -

func RndLetters

func RndLetters(n int) string

RndLetters -

func RndNumbers

func RndNumbers(n int) string

RndNumbers -

func RndPasswSpecChar

func RndPasswSpecChar(n int) string

RndPasswSpecChar -

func StrPtr

func StrPtr(s string) *string

func TagToStr

func TagToStr(tags ...Tag) string

func TimePtr

func TimePtr(t time.Time) *time.Time

func Translit

func Translit(tag language.Tag, lowercase bool, str string) string

Types

type Int64Sort

type Int64Sort []int64

func (Int64Sort) Len

func (a Int64Sort) Len() int

func (Int64Sort) Less

func (a Int64Sort) Less(i, j int) bool

func (Int64Sort) Swap

func (a Int64Sort) Swap(i, j int)

type Tag

type Tag struct {
	Tag     string
	Content any
	Attrs   map[string]string
}

Jump to

Keyboard shortcuts

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