go-tools

module
v7.7.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: Apache-2.0

README

go-tools Build Status GoDoc License

A utility tool library of Golang.

Installation

$ go get -u github.com/xgfone/go-tools/v7

Subpackages

Notice:

subpackage notice
atexit Manage the exit of a certain lifecycle.
cache Supply some caches, such as LRUCache. Notice: LRUCache is copied from github.com/youtube/vitess/go/cache.
execution execution executes a command line program in a new process and returns an output.
file Some convenient functions about the file operation.
function Collect some convenient funtions, for example, calling a function or method dynamically, comparing two values, etc.
io2 The supplement of the standard library of io.
json2 The supplement of the standard library of json.
lifecycle The manager of the lifecycle of some apps in a program.
namespace Supply the operation about linux namespace.
net2 The supplement of the standard library net, such as some helpers about net.
pools Some simple convenient pools, such as BytesPool, BufferPool, etc.
scanner the replacer of the stdlib bufio.Scanner, which adds the read offset.
signal2 The supplement of the standard library of signal, such as HandleSignal.
slice Supply some assistant functions about slice.
sort2 The supplement of the standard library of sort.
strings2 The supplement of the standard library of strings.
tag Find and get the tags in a struct.
types Some assistant functions about type, such as the type validation.
wait Poll or listen for changes to a condition. It's copied from k8s.io/apimachinery/pkg/util/wait.

Example

See the test file of each subpackage.

Directories

Path Synopsis
Package atexit is used to manage the exit of a certain lifecycle.
Package atexit is used to manage the exit of a certain lifecycle.
Package cache implements a LRU cache.
Package cache implements a LRU cache.
Package execution executes a command line program in a new process and returns a output.
Package execution executes a command line program in a new process and returns a output.
Package file supplies some convenient functions about the file operation.
Package file supplies some convenient functions about the file operation.
Package function supplies some convenient functions, such as calling a function or method dynamically, and getting a integer range between the maximal and the minimum.
Package function supplies some convenient functions, such as calling a function or method dynamically, and getting a integer range between the maximal and the minimum.
Package io2 is the supplement of the standard library of `io`.
Package io2 is the supplement of the standard library of `io`.
Package json2 is the supplement of the standard library of `json`.
Package json2 is the supplement of the standard library of `json`.
Package lifecycle offers a manager of the lifecycle of some apps in a program.
Package lifecycle offers a manager of the lifecycle of some apps in a program.
Package namespace supplies the operation about linux namespace.
Package namespace supplies the operation about linux namespace.
Package net2 is the supplement of the standard library `net`.
Package net2 is the supplement of the standard library `net`.
Package pools supplies some simple convenient pools, such as `BufferPool`.
Package pools supplies some simple convenient pools, such as `BufferPool`.
Package scanner is the replacer of the stdlib `bufio.Scanner`, which adds the read offset.
Package scanner is the replacer of the stdlib `bufio.Scanner`, which adds the read offset.
Package signal2 is the supplement of the standard library of `signal`, such as `HandleSignal`.
Package signal2 is the supplement of the standard library of `signal`, such as `HandleSignal`.
Package slice supplies some assistant functions about slice.
Package slice supplies some assistant functions about slice.
Package sort2 is the supplement of the standard library of `sort`.
Package sort2 is the supplement of the standard library of `sort`.
Package strings2 is the supplement of the standard library of `strings`.
Package strings2 is the supplement of the standard library of `strings`.
Package tag is used to find and get the tags in a struct.
Package tag is used to find and get the tags in a struct.
Package types supplies some assistant functions about type, such as the type validation, deque, and set, etc.
Package types supplies some assistant functions about type, such as the type validation, deque, and set, etc.
Package wait provides tools for polling or listening for changes to a condition.
Package wait provides tools for polling or listening for changes to a condition.

Jump to

Keyboard shortcuts

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