Skip to content

yiranzai/go-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-utils

codecov Go Report Card Sourcegraph Open Source Helpers Release FOSSA Status

Golang utils for me.

目录



Install

go get github.com/yiranzai/go-utils

Usage

Something.

Math

  • MinInt(vars ...int) // get the min int vars
  • MinInt64(vars ...int64) // get the min int64 vars
  • MaxInt(vars ...int) // get the max int vars
  • MaxInt64(vars ...int64) // get the max int64 vars
  • AbsInt(abs int) int // abs int
  • AbsInt64(abs int64) int64 // abs int64

Leetcode

  • GenerateTree(treeList []interface{}) // generate leetcode tree
  • GenerateList(list []int) // generate leetcode list
  • LoopEqualList(t *testing.T, head *ListNode, list []int) // test diff list and array
  • DeepEqualTree(t *testing.T, head, right *TreeNode) // test recursion diff tree

License

This project is licensed under the MIT License. See the LICENSE file for the full license text.

FOSSA Status