myutil

package
v0.0.0-...-a8b6b34 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicRuntimeInfo

func BasicRuntimeInfo() map[string]string

func DiffJSON

func DiffJSON(old, new []byte) (diff []byte)

func DiffMap

func DiffMap(old, new []map[string]string) (diff []map[string]string)

func FileNameAndExtension

func FileNameAndExtension(basefilename string) (filename string, ext string)

func JSONFile

func JSONFile(file os.FileInfo) (fileName string, ok bool)

func LogJSONDecode

func LogJSONDecode(err error, data interface{})

func LogJSONEncode

func LogJSONEncode(err error, obj interface{})

func ProjectRootPath

func ProjectRootPath() string

func PublicPath

func PublicPath() string

func SplitTextByLineBreak

func SplitTextByLineBreak(text string, limit int) (texts []string)

func StoragePath

func StoragePath() string

Types

type StringSlice

type StringSlice []string

StringSlice is a type []string

func (*StringSlice) AppendNonRepeat

func (ss *StringSlice) AppendNonRepeat(objectStrs []string, caseSensitive bool)

func (*StringSlice) AppendNonRepeatElement

func (ss *StringSlice) AppendNonRepeatElement(str string, caseSensitive bool)

func (*StringSlice) Clean

func (ss *StringSlice) Clean()

Clean Removes "" and "*" in Slice

func (*StringSlice) Delete

func (ss *StringSlice) Delete(sDels []string, caseSensitive bool)

func (*StringSlice) DeleteElement

func (ss *StringSlice) DeleteElement(s string, caseSensitive bool)

func (StringSlice) Index

func (ss StringSlice) Index(value string, caseSensitive bool) int

func (*StringSlice) RemoveStringsSpace

func (ss *StringSlice) RemoveStringsSpace()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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