go

module
v0.0.0-...-519d24f Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: BSD-3-Clause

README

yssk22 Go

CircleCI Go Documentation

A set of go packages and tools used in yssk22.net internal tools.

Usage

$ go get github.com/yssk22/go

Code structure

  • x/* packages provide extended functionality of default packages.
  • tools/cmd/* packages provide command line tools to go project development.
    • tools/cmd/enum to generate enum functions from type aliases.

See full doc at godoc.org.

Directories

Path Synopsis
Package ansi supports ANSI color decorated functions for fmt package You can decorate output text with colors by replacing fmt.Print function with ansi.{ColorName}.Print
Package ansi supports ANSI color decorated functions for fmt package You can decorate output text with colors by replacing fmt.Print function with ansi.{ColorName}.Print
cli
agent
Package agent provides the utilities to implement long running command line application
Package agent provides the utilities to implement long running command line application
Package crawler provides types and functions to run crawler.
Package crawler provides types and functions to run crawler.
gcp
datastore/typed/example
Code generated by github.com/yssk22/go/generator DO NOT EDIT.
Code generated by github.com/yssk22/go/generator DO NOT EDIT.
enum/example
Code generated by github.com/yssk22/go/generator DO NOT EDIT.
Code generated by github.com/yssk22/go/generator DO NOT EDIT.
flow/example
Code generated by github.com/yssk22/go/generator DO NOT EDIT.
Code generated by github.com/yssk22/go/generator DO NOT EDIT.
Package iterator provides function for slice and map
Package iterator provides function for slice and map
Package keyvalue provides the Key-Value based access utility.
Package keyvalue provides the Key-Value based access utility.
config
Package config provies configuraiton access functions
Package config provies configuraiton access functions
Package lazy provides context-based lazy evaluatios
Package lazy provides context-based lazy evaluatios
Package number provides some utility for int and float
Package number provides some utility for int and float
watson/visualrecognition
Package visualrecognition provides types and functions for IBM Watson Visual Recognition API
Package visualrecognition provides types and functions for IBM Watson Visual Recognition API
tools
cmd/enum
Enum is a tool to automate the creation of methods for enum types.
Enum is a tool to automate the creation of methods for enum types.
Package uuid to generate UUID string We support only RFC4122 compatible one.
Package uuid to generate UUID string We support only RFC4122 compatible one.
Package validator provides types and functions for validator implementations
Package validator provides types and functions for validator implementations
web
Package web provides simple web application framework for golang
Package web provides simple web application framework for golang
api
Code generated by github.com/yssk22/go/generator DO NOT EDIT.
Code generated by github.com/yssk22/go/generator DO NOT EDIT.
api/generator/example
Code generated by github.com/yssk22/go/generator DO NOT EDIT.
Code generated by github.com/yssk22/go/generator DO NOT EDIT.
api/generator/example/types
Code generated by github.com/yssk22/go/generator DO NOT EDIT.
Code generated by github.com/yssk22/go/generator DO NOT EDIT.
middleware/oauth2
Package oauth2 provides oauth2 middleware
Package oauth2 provides oauth2 middleware
middleware/session/sessiontest
Package sessiontest provides session test helper
Package sessiontest provides session test helper
value
Package value provides lazy.Value for web context.
Package value provides lazy.Value for web context.
x
xarchive/xzip
Package xzip provides higher level types and functions on top of "arvhive/zip" package.
Package xzip provides higher level types and functions on top of "arvhive/zip" package.
xcrypto/xhmac
Package xhmac provides some ulitities for hmac
Package xhmac provides some ulitities for hmac
ximage
Package ximage provider higher level functions for image processing
Package ximage provider higher level functions for image processing
xjson
Package xjson provides extended utility functions for encoding/json
Package xjson provides extended utility functions for encoding/json
xlog
Package xlog provides extended utility functions for log Package xlog provides the logging framework for applications.
Package xlog provides extended utility functions for log Package xlog provides the logging framework for applications.
xlog/xlogtest
Package xlogtest for internal tests.
Package xlogtest for internal tests.
xnet/xhttp
Package xhttp provies utility functions for net/http package
Package xhttp provies utility functions for net/http package
xos
xruntime
Package xruntime provides extended utility functions for runtime
Package xruntime provides extended utility functions for runtime
xstrings
Package xstrings provides extended utility functions for strings
Package xstrings provides extended utility functions for strings
xtesting/assert
Package assert provides the assersion feature for *testing.T You can use assert functions by `assert.New(t)` import ( "testing" "github.com/yssk22/go/x/xtesting/assert" ) func TestSomething(t *testing.T){ assert := assert.New(t) assert.OK(true) assert.EqInt(1, 1) assert.EqStr("Expects", "Got", "Somthing wrong!") }
Package assert provides the assersion feature for *testing.T You can use assert functions by `assert.New(t)` import ( "testing" "github.com/yssk22/go/x/xtesting/assert" ) func TestSomething(t *testing.T){ assert := assert.New(t) assert.OK(true) assert.EqInt(1, 1) assert.EqStr("Expects", "Got", "Somthing wrong!") }
xtime
Package xtime provides extended utility functions for time
Package xtime provides extended utility functions for time

Jump to

Keyboard shortcuts

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