非死book 开源的Go 函数库集

jopen 7年前

非死book 开源的Go 函数库集,将近40个Go函数库开源。

tool

Go library that wraps the go tool.


runcmd

Package runcmd provides a convenience Run function for exec.Cmd which includes the original command along with the output and error streams.


rpool

Package rpool provides a resource pool.


errgroup

Package errgroup provides a WaitGroup like component that is capable of collecting errors.


ensure

Package ensure provides utilities for testing to ensure the given conditions are met and Fatal if they aren't satisified.


stats

Package stats defines a lightweight interface for collecting statistics.


waitout

Package waitout makes it easy to wait for some output.


limitgroup

Package limitgroup provides a sync.WaitGroup equivalent with a configurable upper bound.


gangliamr

Package gangliamr provides metrics backed by Ganglia.


ganglia

Package clients for the ganglia gmetric and gmon APIs.


fbapi

Package fbapi provides a client for the 非死book API.


structtag

Package structtag provides parsing of the defacto struct tag style.


pidfile

Package pidfile manages pid files.


mgotest

Package mgotest provides standalone instances of mongo sutable for use in tests.


flagenv

Package flagenv provides the ability to populate flags from environment variables.


stdfd

Package stdfd provides routines for redirecting stdout and stderr.


stackerr

Package stackerr provides a way to augment errors with one or more stack traces to allow for easier debugging.


stack

Package stack provides utilities to capture and pass around stack traces.


mysqltest

Package mysqltest provides standalone instances of mysql sutable for use in tests.


counting

Package counting provides wrappers to add counting to io.Reader and io.Writer.

subset

A library to check if a value is a subset of another. Useful for testing.


mctest

Package mctest provides standalone instances of memcache suitable for use in tests.


inject

Package inject provides a reflect based injector.


grace

Graceful restart for Go servers.


freeport

A Go library to find a free port


flag.addrs

Package addrs provides flags to define one or an array of net.Addr.


atomicfile

Package atomicfile provides an atomically written/replaced file.


muster

Package muster provides a framework to write batching enabled libraries.


startstop

Package startstop provides automatic Start/Stop for inject eliminating the necessity for manual ordering.


dvara

dvara is a connection pooling proxy for mongo.


httpcontrol

Package httpcontrol allows for HTTP transport level control around timeouts and retries.


httperr

Package httperr provides HTTP errors and utilities.


pqueue

Package pqueue provides a priority queue.


metrics

forked from rcrowley/go-metrics

Package metrics provides various measuring instruments.


mongoschema

A tool to generate Go struct types based on data in a Mongo collection.


jsonpipe

Package jsonpipe provides a io.Reader for Encoding JSON. This is useful to encode JSON without buffering.


flagconfig

Go library to read flags from config file in addition to command line arguments.


fbapp

Go library to represent a 非死book App for use with APIs, Auth etc.

来自:https://github.com/非死bookgo?page=1