Documentation ¶
Index ¶
- func ChangeList2ListNode(list []int) *config.ListNode
- func Compress(files []*os.File, dest string) error
- func Cut(tag string, subTag string)
- func DeCompress(tarFile, dest string) error
- func FileExist(path string) bool
- func GenerateRangeNum(min, max int) int
- func GetRandomName(retry int) string
- func GetZip(w io.Writer) error
- func InitListNodes(linkNum int) *config.ListNode
- func InitListRandNodes(linkNum int) *config.ListNode
- func InitListSortRandNodes(linkNum int) *config.ListNode
- func InitNoRepeatRandArrayRange(num int, min int, max int) []int
- func InitRandArray(num int) []int
- func InitRandArrayRange(num int, min int, max int) []int
- func InitRandCycleLinkedList(linkNum int, pos int) *config.ListNode
- func InitRandLevelArrayRange(level int, num int, min int, max int) [][]int
- func InitRangeLinkList(linkNum int, min int, max int) *config.ListNode
- func LinkedListPrint(head *config.ListNode) []int
- func Max(a, b int) int
- func Min(a, b int) int
- func PrintLevelArray(levelArr [][]int)
- func RandStringBytesMask(n int) string
- func RandStringBytesMaskImprSrc(n int) string
- func Start(tag string, subTag string)
- type Exception
- type ExceptionHandler
- type TimeCut
- type TryStruct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeList2ListNode ¶
func GenerateRangeNum ¶
func GetRandomName ¶
GetRandomName generates a random name from the list of adjectives and surnames in this package formatted as "adjective_surname". For example 'focused_turing'. If retry is non-zero, a random integer between 0 and 10 will be added to the end of the name, e.g `focused_turing3`
func InitListNodes ¶
func InitListRandNodes ¶
func InitListSortRandNodes ¶
func InitRandArray ¶
func InitRandLevelArrayRange ¶
func LinkedListPrint ¶
func PrintLevelArray ¶
func PrintLevelArray(levelArr [][]int)
func RandStringBytesMask ¶
Types ¶
type ExceptionHandler ¶
type ExceptionHandler func(Exception)
Click to show internal directories.
Click to hide internal directories.