/common

Ory's cross-project go libraries.

Primary LanguageGoApache License 2.0Apache-2.0

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.