term
provides an API for working with terminals that includes:
Switching a terminal to the raw mode.
Getting, setting and restoring the state of a terminal.
Getting size of a terminal.
Reading passwords from a terminal without a local echo.
This package provides Go modules focused on text parsing, with lexers, parsers, and related tools.
Included modules are:
github.com/tekwizely/go-parsing
github.com/tekwizely/go-parsing/lexer
github.com/tekwizely/go-parsing/lexer/token
github.com/tekwizely/go-parsing/parser
Package levenshtein is a Go implementation to calculate Levenshtein Distance. The library is fully capable of working with non-ascii strings. But the strings are not normalized. That is left as a user-dependant use case. Please normalize the strings before passing it to the library if you have such a requirement.
This package implements a feature of limiting the maximum number of concurrently started routines which has the same role and API as sync.WaitGroup
. It could for example be used to start multiples routines querying a database but without sending too much queries in order to not overload the given database.
This library is meant to handle Web Authentication for Go apps that wish to implement a passwordless solution for users. This library conforms as much as possible to the guidelines and implementation procedures outlined by the document. It's a successor of not maintained https://github.com/duo-labs/webauthn library.
This package provides provides an utility for timezone manipulation, implementing the following features:
this library uses only the standard package
supports getting offset from timezone abbreviation, which is not supported by the time package
determine whether the specified time.Time is daylight saving time
change the location of time.Time by specifying the timezone
This package produces a collection of cryptographic utilities, including the following:
drbg
: a cryptographically secure pseudorandom number generator as specified in NIST SP 800-90Aencoding/base32
: a compact base32 encodersecretkey
: user-friendly secret keys that can be used with secretboxsalsa20
: a streaming interface (cipher.Stream) for the Salsa20 stream cipherpoly1305
: a streaming interface (hash.Hash) for the Poly1305 one-time authenticator as specified in poly1305
This is a Go library for detecting the user's home directory without the use of cgo
, so the library can be used in cross-compilation environments.
Usage is simple, just call homedir.Dir() to get the home directory for a user, and homedir.Expand() to expand the ~
in a path to the home directory.
Why not just use os/user
? The built-in os/user
package requires cgo on Darwin systems. This means that any Go code that uses that package cannot cross compile. But 99% of the time the use for os/user
is just to retrieve the home directory, which we can do for the current user without cgo. This library does that, enabling cross-compilation.
This repository factors out an opinionated selection of internal packages and functionality from the Go standard library. Currently this consists mostly of packages and testing code from within the Go tool implementation.
Included are the following:
dirhash: calculate hashes over directory trees the same way that the Go tool does.
goproxytest: a GOPROXY implementation designed for test use.
gotooltest: Use the Go tool inside test scripts (see testscript below)
imports: list of known architectures and OSs, and support for reading import import statements.
modfile: read and write go.mod files while preserving formatting and comments.
module: module paths and versions.
par: do work in parallel.
semver: semantic version parsing.
testenv: information on the current testing environment.
testscript: script-based testing based on txtar files
txtar: simple text-based file archives for testing.
A .gitignore
parser for Go.
Java properties scanner for Go
Converts markdown into roff (man pages).
Converts markdown into roff (man pages).
This package provides memcache client and server functionality.
Package bigfft implements multiplication of big.Int using FFT.
Colorstring provides functions for colorizing strings for terminal output.
Package colorstring provides functions for colorizing strings for terminal output.
This package converts Markdown into Roff Man pages.
Go library provides utilities for building command line interfaces.
This package is a simple Golang implementation of tag parser.