utils

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abs

func Abs(bashPath, path string) string

Abs Use bashPath as the working directory to return the absolute path

func BasePath

func BasePath() string

BasePath return executable file directory

func BytesToString

func BytesToString(b []byte) (str string)

BytesToString []byte to string

func StringToBytes

func StringToBytes(str string) (b []byte)

StringToBytes string to []byte

Types

type SortString

type SortString []string

SortString implement string sort

func (SortString) Len

func (arrs SortString) Len() int

Len is the number of elements in the collection.

func (SortString) Less

func (arrs SortString) Less(i, j int) bool

Less reports whether the element with index i should sort before the element with index j.

func (SortString) Swap

func (arrs SortString) Swap(i, j int)

Swap swaps the elements with indexes i and j.

Jump to

Keyboard shortcuts

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