Categorygithub.com/ory/common
module
0.4.0
Repository: https://github.com/ory/common.git
Documentation: pkg.go.dev

# 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.

# Packages

No description provided by the author
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 ..
No description provided by the author
A very handy library which adds defaults to os.GetEnv().
No description provided by the author
No description provided by the author
No description provided by the author
A library based on crypto/rand to create random sequences.