util

package
v0.0.49 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists added in v0.0.12

func Exists(path string) bool

func ExistsDir added in v0.0.12

func ExistsDir(path string) bool

func ExistsFile added in v0.0.12

func ExistsFile(path string) bool

func GetLocalIP added in v0.0.49

func GetLocalIP() (ips []string)

func GetPackageName

func GetPackageName(dir string) (pkgName string)

func IsEmptyDir added in v0.0.12

func IsEmptyDir(name string) bool

Types

type MustValue added in v0.0.44

type MustValue struct {
	// contains filtered or unexported fields
}

func Must added in v0.0.44

func Must(value interface{}, err error) *MustValue

func (*MustValue) Bool added in v0.0.44

func (s *MustValue) Bool() bool

func (*MustValue) Default added in v0.0.44

func (s *MustValue) Default(defaultValue interface{}) *MustValue

func (*MustValue) Float32 added in v0.0.44

func (s *MustValue) Float32() float32

func (*MustValue) Float64 added in v0.0.44

func (s *MustValue) Float64() float64

func (*MustValue) Int added in v0.0.44

func (s *MustValue) Int() int

func (*MustValue) Int32 added in v0.0.44

func (s *MustValue) Int32() int32

func (*MustValue) Int64 added in v0.0.44

func (s *MustValue) Int64() int64

func (*MustValue) String added in v0.0.44

func (s *MustValue) String() string

func (*MustValue) StringSlice added in v0.0.44

func (s *MustValue) StringSlice() []string

func (*MustValue) Uin64t added in v0.0.44

func (s *MustValue) Uin64t() uint64

func (*MustValue) Uint added in v0.0.44

func (s *MustValue) Uint() uint

func (*MustValue) Uint32 added in v0.0.44

func (s *MustValue) Uint32() uint32

func (*MustValue) Uint8 added in v0.0.44

func (s *MustValue) Uint8() uint8

func (*MustValue) Value added in v0.0.44

func (s *MustValue) Value() any

Directories

Path Synopsis
Package checksum computes checksums, like MD5 or SHA256, for large files
Package checksum computes checksums, like MD5 or SHA256, for large files

Jump to

Keyboard shortcuts

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