gommon

module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2018 License: MIT

README

Gommon - Golang common util libraries

GoDoc Build Status Go Report Card codebeat badge Sourcegraph

Gommon is a collection of common util libraries written in Go.

It has the following components:

  • Cast Convert Golang types
  • Data structure Bring Set etc. to Golang.
  • Log A log4j style logger, support filtering by package, custom filters etc.
  • Requests A pythonic wrapper for net/http, HTTP for Gopher.
  • Runner A os/exec wrapper

Development

Roadmap
  • log v2 tree like, http logger, http handler for adjust logger
  • config v2, better multi document support, deep merge var etc.
  • runner, simplify usage

License

MIT

Acknowledgement

Gommon is inspired and in some sense a simplified and unified version of the following awesome libraries

It was part of Ayi and split out for wider use. The name Gommon is suggested by @arrowrowe. The original blog post can be found here. Thanks all the fellows in @dyweb especially @gaocegege for their support.

Directories

Path Synopsis
Package cast convert types safely and drop incompatible types during conversion Ref https://github.com/spf13/cast
Package cast convert types safely and drop incompatible types during conversion Ref https://github.com/spf13/cast
cmd
Package config support django syntax in yaml config Code generated by gommon from config/gommon.yml DO NOT EDIT.
Package config support django syntax in yaml config Code generated by gommon from config/gommon.yml DO NOT EDIT.
legacy
log
Package log can filter log by field and support multiple level
Package log can filter log by field and support multiple level
log
Code generated by gommon from log/gommon.yml DO NOT EDIT.
Code generated by gommon from log/gommon.yml DO NOT EDIT.
handlers/stdio
Package stdio can be used with stderr/stdout/file and all the writer that implemented WriteSyncer interface its code is almost identical with default handler, but we duplicate the code to avoid cycle import
Package stdio can be used with stderr/stdout/file and all the writer that implemented WriteSyncer interface its code is almost identical with default handler, but we duplicate the code to avoid cycle import
playground
Package requests is a pythonic HTTP library for Gopher Package requests wrap net/http like requests did for python it is easy to use, but not very efficient
Package requests is a pythonic HTTP library for Gopher Package requests wrap net/http like requests did for python it is easy to use, but not very efficient
Package runner run commands with some convention
Package runner run commands with some convention
Package structure add some missing common data structures to Golang
Package structure add some missing common data structures to Golang
Package util contains helper for test
Package util contains helper for test
hashutil
Package hashutil provides alloc free alternatives for pkg/hash
Package hashutil provides alloc free alternatives for pkg/hash

Jump to

Keyboard shortcuts

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