Package logfmt implements utilities to marshal and unmarshal data in the logfmt format. The logfmt format records key/value pairs in a way that balances readability for humans and simplicity of computer parsing. It is most commonly used as a more human friendly alternative to JSON for structured logging.
Package logfmt implements utilities to marshal and unmarshal data in the logfmt format. The logfmt format records key/value pairs in a way that balances readability for humans and simplicity of computer parsing. It is most commonly used as a more human friendly alternative to JSON for structured logging.
goprocess
introduces a way to manage process lifecycles in Go. It is much like go.net/context
(it actually uses a Context), but it is more like a Context-WaitGroup hybrid. goprocess
is about being able to start and stop units of work, which may receive Close
signals from many clients.
This package contains code that supplements the time package from the Go standard library.
In particular:
a Clock interface, with a fake implementation that can be used in tests
implementations of oglematchers.Matcher for time values
This package contains code that supplements the sync package from the Go standard library.
In particular:
Bundle, which makes it easy to write code that spawns multiple cancellation-aware workers that may fail
invariantMutex, which makes it possible to automatically check your invariants at lock and unlock time
This package provides a library for conversion between Hebrew and Gregorian dates, and generation of lists of Jewish holidays for a given year. Shabbat and holiday candle lighting and havdalah times are approximated based on location.
Torah readings, Daf Yomi, and counting of the Omer can also be specified. Algorithms are included to calculate yahrzeits, birthdays, and anniversaries.
This package implements functionality to initialize structs with default values. It supports almost all kind of types: int/8/16/32/64
, uint/8/16/32/64
, float32/64
, uintptr
, bool
, string
, map
, slice
, struct
, f,map[K1]map[K2]Struct
, []map[K1]Struct[]
Package jsoniter implements encoding and decoding of JSON as defined in @urlhttps://rfc-editor.org/rfc/rfc4627.html,RFC 4627 and provides interfaces with identical syntax of standard lib encoding/json. Converting from encoding/json to jsoniter is no more than replacing the package with jsoniter and variable type declarations (if any). jsoniter interfaces gives 100% compatibility with code using standard lib.
Package jsoniter implements encoding and decoding of JSON as defined in RFC 4627 and provides interfaces with identical syntax of standard lib encoding/json. Converting from encoding/json to jsoniter is no more than replacing the package with jsoniter and variable type declarations (if any). jsoniter interfaces gives 100% compatibility with code using standard lib.
This package implements encoding and decoding of JSON as defined in RFC 4627 and provides interfaces with identical syntax of standard lib encoding/json. Converting from encoding/json to jsoniter is no more than replacing the package with jsoniter and variable type declarations (if any). jsoniter interfaces gives 100% compatibility with code using standard lib.
This package provides a cross-platform clipboard library.
Platforms supported:
Linux via
xclip
orxsel
orwl-copy/wl-paste
MacOS via
pbcopy/pbpaste
Windows via the Windows clipboard API
WSL via clip.exe/powershell.exe
Android Termux via
termux-clipboard-set/termux-clipboard-get
Plan9 via
/dev/snarf
Anything else via a user-defined script
Package echo implements a high performance, minimalist Go web framework. Features:
optimized HTTP router which smartly prioritize routes
build robust and scalable RESTful APIs
group APIs
extensible middleware framework
define middleware at root, group or route level
data binding for JSON, XML and form payload
handy functions to send variety of HTTP responses
centralized HTTP error handling
template rendering with any template engine
define your format for the logger
highly customizable
automatic TLS via Let’s Encrypt
HTTP/2 support
Package saltpack is an implementation of the saltpack message format. Saltpack is a light wrapper around Dan Berstein's famous NaCl library. It adds support for longer messages, streaming input and output of data, multiple recipients for encrypted messages, and a reasonable armoring format. We intend Saltpack as a replacement for the PGP messaging format, as it can be used in many of the same circumstances. However, it is designed to be: (1) simpler; (2) easier to implement; (3) judicious (perhaps judgmental) in its crypto usage; (4) fully modern (no CFB mode here); (5) high performance; (6) less bug- prone; (7) generally unwilling to output unauthenticated data; and (8) easier to compose with other software in any manner of languages or platforms.
Package githubv4 is a client library for accessing GitHub GraphQL
API v4.
File system notifications for Go
Go wrapper for taglib
a simple fake clock for golang
BFloat16 conversion utilities for Go/Golang.