Documentation
¶
Index ¶
- Variables
- func ArrayToMap[T basicdata](originarr []T) (res map[T]struct{})
- func CheckArgs[T any](args []string, originmap map[string]T) bool
- func Comparecounts[T basicmath](originlist []T, newlist []T) bool
- func ExportMapKeys[T string | int | float64 | byte](originmap map[string]T) (res []string)
- func ExportMapKeysAny[T interface{}](originmap map[string]T) (res []string)
- func ExportMapKeysArrayEdition[T string | int | float64 | byte](originmap map[T][]any) (res []T)
- func ExportMapValue[T string | int | float64 | byte](originmap map[string]T) (res []T)
- func FindNumberFromString(origin string) (int, float64, bool, bool)
- func FormatList(origin map[string]string, path string) (bool, error)
- func FormatListBySymbol(origin map[string]string, path, symbol string) (bool, error)
- func FormatListUltra(origin map[string]string, symbol string) (res string)
- func GetBaseName(path string) string
- func GetDirPath(path string) string
- func LogInit(logname, filepath string) *log.Logger
- func MakeRandArray(length int, args []int) []int
- func Md5(content []byte) []byte
- func ParseList(path string) (map[string]string, error)
- func ParseListBySymbol(path, symbol string) (res map[string]string, err error)
- func ParseListUltra(content []byte, symbol string) (res map[string]string, err error)
- func ProcessFinished(pro *Process)
- func ProcessRun(pro *Process, end *bool)
- func RandomMake(length int) string
- func ScanPlugin(filepath string) (pluginer *plugin.Plugin, err error)
- func ScanPluginByName(plugin_name, rootpath string) (pluginer *plugin.Plugin, err error)
- func Sha256(content []byte) []byte
- func SortArray[T basicmath](array []T) []T
- func TestSort()
- type Process
Constants ¶
This section is empty.
Variables ¶
View Source
var ROOTPATH = os.Getenv("OCTOOLS_HOME")
Functions ¶
func ArrayToMap ¶
func ArrayToMap[T basicdata](originarr []T) (res map[T]struct{})
transfer 1D array to map,make sure your array's data were not repeat
func Comparecounts ¶
func Comparecounts[T basicmath](originlist []T, newlist []T) bool
need compare array,compare array
func ExportMapKeys ¶
func ExportMapKeysAny ¶
the map value is unlimited
func ExportMapValue ¶
func FindNumberFromString ¶
return int,float,isfloat,isexsit
func FormatListBySymbol ¶
advanced method for format the map to file
func FormatListUltra ¶
foramt the map to string and custom spilt sybol freely
func GetBaseName ¶
func GetDirPath ¶
func ParseListBySymbol ¶
advance parser method
func ParseListUltra ¶
parse the bytes array to the target map,split by custom symbol freely
func ProcessFinished ¶
func ProcessFinished(pro *Process)
func RandomMake ¶
func ScanPlugin ¶
scan plugin by full path
func ScanPluginByName ¶
scan plugin by plugin name ,input plugin name and root path of plugin
Types ¶
Click to show internal directories.
Click to hide internal directories.