goodie bag in use in the go-openapi projects
Clone or download
casualjim add go.mod and go.sum
Signed-off-by: Ivan Porto Carrero <ivan@flanders.co.nz>
Latest commit 5899d5c Oct 7, 2018
Permalink
Failed to load latest commit information.
.github adds license etc Apr 17, 2016
.editorconfig allow for empty string in ToGoName Jan 29, 2017
.gitignore Abide by requested changes: (+)go fmt (-)vendor (-)Godeps Nov 11, 2017
.golangci.yml More UTs on name mangling Sep 3, 2018
.travis.yml use go 1.11 in travis Aug 25, 2018
CODE_OF_CONDUCT.md adds license etc Apr 17, 2016
LICENSE adds license etc Apr 17, 2016
README.md More UTs on name mangling Sep 3, 2018
convert.go Global read-only maps are safe, provided they are properly initialize… Sep 4, 2018
convert_test.go Global read-only maps are safe, provided they are properly initialize… Sep 4, 2018
convert_types.go Implements convert uint type fuctions. May 12, 2016
convert_types_test.go More UTs on name mangling Sep 3, 2018
doc.go More UTs on name mangling Sep 3, 2018
go.mod add go.mod and go.sum Oct 7, 2018
go.sum add go.mod and go.sum Oct 7, 2018
json.go Global read-only maps are safe, provided they are properly initialize… Sep 4, 2018
json_test.go Fixes ConcatJSON() when concatenating with nulls Apr 5, 2018
loading.go fix pathunescap Mar 2, 2018
loading_test.go bump with latest golangci Sep 8, 2018
net.go fixes #372 separate listener creation from serving Mar 5, 2016
net_test.go fixes #372 separate listener creation from serving Mar 5, 2016
path.go update gopath search for 1.8 Apr 13, 2017
path_test.go Debt reduction: more golangci suggested linting Sep 3, 2018
post_go18.go fix pathunescap Mar 2, 2018
post_go19.go Fix race condition with maps Jul 2, 2018
pre_go18.go fix pathunescap Mar 2, 2018
pre_go19.go Fix race condition with maps Jul 2, 2018
util.go Added ContainsString() [symmetric to ContainStringCI()] Sep 3, 2018
util_test.go More UTs on name mangling Sep 3, 2018
yaml.go Linting Jul 2, 2018
yaml_test.go bump with latest golangci Sep 8, 2018

README.md

Swag Build Status codecov Slack Status

license GoDoc GolangCI Go Report Card

Contains a bunch of helper functions for go-openapi and go-swagger projects.

You may also use it standalone for your projects.

  • convert between value and pointers for builtin types
  • convert from string to builtin types (wraps strconv)
  • fast json concatenation
  • search in path
  • load from file or http
  • name mangling

This repo has only few dependencies outside of the standard library:

  • JSON utilities depend on github.com/mailru/easyjson
  • YAML utilities depend on gopkg.in/yaml.v2