Categorygithub.com/yiranzai/go-utils
repositorypackage
0.0.3
Repository: https://github.com/yiranzai/go-utils.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

go-utils

codecov Go Report Card Sourcegraph Open Source Helpers Release FOSSA Status

Golang utils for me.

目录


Created by gh-md-toc


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