go

module
v0.0.0-...-ed9fe1d Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2018 License: BSD-3-Clause

README

SPEEDLAND Go

CircleCI Go Documentation

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

Usage

$ go get github.com/speedland/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.
rss
ent
Package ent provides the helper types and functions for code generated by ent tool
Package ent provides the helper types and functions for code generated by ent tool
generator
Package generator provides types and functions for ent generator.
Package generator provides types and functions for ent generator.
gae
log
memcache
Package memcache provides some utilities for memcache access
Package memcache provides some utilities for memcache access
service
Package service provides a gae service instance framework on top of github.com/speedland/go/web package.
Package service provides a gae service instance framework on top of github.com/speedland/go/web package.
service/asynctask
Package asynctask provides async task execution support on GAE apps
Package asynctask provides async task execution support on GAE apps
session
Package session provides github.com/speedland/go/web/middleware/session.SessionStore implementation for GAE environment
Package session provides github.com/speedland/go/web/middleware/session.SessionStore implementation for GAE environment
taskqueue
Package taskqueue provides a utility for taskqueue
Package taskqueue provides a utility for taskqueue
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/ent
ent tool generates the datastore access logics and validations for your datastore entities.
ent tool generates the datastore access logics and validations for your datastore entities.
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
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/speedland/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/speedland/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