common

module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2017 License: Apache-2.0

README

ory-am/common

Build Status Coverage Status

A library for common tasks:

  • env adds defaults to os.GetEnv() and saves you 3 lines of code
  • rand is a library based on crypto/rand to create random sequences, which are cryptographically strong.
  • compiler enables you to compile regex expressions from templates like foo{.*}bar. Useful for URL pattern matching.

You'll find READMEs in each package directory.

This library also includes packages called pkg and context. Both are subject to frequent changes. Don't use them.

Directories

Path Synopsis
Package compiler offers a regexp compiler which compiles regex templates to regexp.Regexp reg, err := compiler.CompileRegex("foo:bar.baz:<[0-9]{2,10}>", '<', '>') // if err != nil ...
Package compiler offers a regexp compiler which compiles regex templates to regexp.Regexp reg, err := compiler.CompileRegex("foo:bar.baz:<[0-9]{2,10}>", '<', '>') // if err != nil ...
A very handy library which adds defaults to os.GetEnv()
A very handy library which adds defaults to os.GetEnv()
A library based on crypto/rand to create random sequences
A library based on crypto/rand to create random sequences

Jump to

Keyboard shortcuts

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