commonly used functions for the Go programming language (evacuated from NSA/Microsoft Github)

anonymous a688a65e26 syntax of changelog %!s(int64=6) %!d(string=hai) anos
debian a688a65e26 syntax of changelog %!s(int64=6) %!d(string=hai) anos
testdata d855b6c9de Integrate goconvey, added CopyDir %!s(int64=11) %!d(string=hai) anos
.travis.yml 1df3edaa25 update travis.yml %!s(int64=9) %!d(string=hai) anos
LICENSE 06dd5b5ccf Added LICENSE %!s(int64=11) %!d(string=hai) anos
README.md d63fc3df86 WIP debian packaging %!s(int64=6) %!d(string=hai) anos
cmd.go 70f4bffb88 fix go vet %!s(int64=10) %!d(string=hai) anos
cmd_test.go a0a8dadb99 fix spelling errors, add default return even if it can't run %!s(int64=11) %!d(string=hai) anos
convert.go 7677a1d7c1 Add str2float64 %!s(int64=7) %!d(string=hai) anos
convert_test.go 435ce92eef Add Int2HexStr %!s(int64=10) %!d(string=hai) anos
dir.go e2221023ba add HttpPostJson %!s(int64=10) %!d(string=hai) anos
dir_test.go 71e7a5b2f4 fix test case %!s(int64=9) %!d(string=hai) anos
example_test.go 93212ccbeb fix #3 %!s(int64=6) %!d(string=hai) anos
file.go c672f81f81 Update %!s(int64=10) %!d(string=hai) anos
file_test.go 7ca7db8b5b go fmt %!s(int64=10) %!d(string=hai) anos
html.go f7e88f73d7 Update html.go %!s(int64=10) %!d(string=hai) anos
html_test.go 12d1b8eb5b Added func.: Html2JS %!s(int64=11) %!d(string=hai) anos
http.go e2221023ba add HttpPostJson %!s(int64=10) %!d(string=hai) anos
http_test.go 70f4bffb88 fix go vet %!s(int64=10) %!d(string=hai) anos
math.go 33daac51d5 Improved PowInt for performance by adding recursion. Added test/benchmark for PowInt, because it did not yet exist. %!s(int64=9) %!d(string=hai) anos
math_test.go 188d690b1a math: format test code #4 %!s(int64=9) %!d(string=hai) anos
path.go 47d7d2b81a get USERPROFILE before HOMEPATH in windows %!s(int64=9) %!d(string=hai) anos
path_test.go d63fc3df86 WIP debian packaging %!s(int64=6) %!d(string=hai) anos
regex.go 5ea31af34e use MustCompile for static regexp %!s(int64=10) %!d(string=hai) anos
regex_test.go 7ca7db8b5b go fmt %!s(int64=10) %!d(string=hai) anos
slice.go 35b5810de3 improve IsSliceContainsStr doc. %!s(int64=10) %!d(string=hai) anos
slice_test.go eaa16bbf1f Added func: CompareSliceStrU %!s(int64=11) %!d(string=hai) anos
string.go 0db4a625e9 Append nonce to the end of the ciphertext, alter tests (#14) %!s(int64=7) %!d(string=hai) anos
string_test.go 4d60766903 preliminary building debian package %!s(int64=6) %!d(string=hai) anos
time.go 4e1880dc13 Add DateParse %!s(int64=10) %!d(string=hai) anos
url.go 633928da78 Done code convention %!s(int64=10) %!d(string=hai) anos

README.md

Common Functions

Build Status Go Walker

This is an open source project for commonly used functions for the Go programming language.

This package need >= go 1.2

Code Convention: based on Go Code Convention.

Contribute

Your contribute is welcome, but you have to check following steps after you added some functions and commit them:

  1. Make sure you wrote user-friendly comments for all functions .
  2. Make sure you wrote test cases with any possible condition for all functions in file *_test.go.
  3. Make sure you wrote benchmarks for all functions in file *_test.go.
  4. Make sure you wrote useful examples for all functions in file example_test.go.
  5. Make sure you ran go test and got PASS .