utils

package
v0.0.0-...-96ed590 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All() []string

func Exists

func Exists(path string) bool

func GetBytes

func GetBytes(size string, defaultSize int) int

func Map

func Map() map[string]string

func RealPath

func RealPath(path string) string

func SearchBinary

func SearchBinary(binary string) string

func SetMap

func SetMap(m map[string]string) error

func SplitAndTrim

func SplitAndTrim(str, sep string) []string

Types

type AnyAnyMap

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

func NewAnyAnyMap

func NewAnyAnyMap() *AnyAnyMap

func (*AnyAnyMap) Get

func (m *AnyAnyMap) Get(key interface{}) interface{}

func (*AnyAnyMap) Set

func (m *AnyAnyMap) Set(key interface{}, val interface{})

type StrStrMap

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

func NewStrStrMap

func NewStrStrMap() *StrStrMap

func (*StrStrMap) Get

func (m *StrStrMap) Get(key string) string

func (*StrStrMap) Map

func (m *StrStrMap) Map() map[string]string

func (*StrStrMap) Set

func (m *StrStrMap) Set(key string, val string)

func (*StrStrMap) Sets

func (m *StrStrMap) Sets(data map[string]string)

func (*StrStrMap) Size

func (m *StrStrMap) Size() int

Jump to

Keyboard shortcuts

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