libraidan

module
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: BSD-3-Clause

README

libraidan

A general-purpose library from R. Aidan Campbell

Go Report Card Build Status

Caveat Emptor: Use this library at your own risk. This is merely a collection of functions and abstractions that I've found useful

Structure & Usage

This library prefixes each package name with r to prevent namespace collisions. Currently this is a pkg-only library, meaning it's meant to be imported and used in golang code. There is no command-line interface

Import the desired package

import "github.com/raidancampbell/libraidan/pkg/rstrings"

Packages

rcollections

Deprecated, use a package like GoDS instead

The rcollections package implements several common map and set operations, such as Contains or GetWithDefault, as well as the more advanced map, reduce, and filter operations. These are provided one for each type, because I don't know enough golang to write it cleaner. PRs welcome.

rmath

The rmath package contains math reducing operators, such as sum, min, and max, etc.

roper

The roper package implements more advanced "operator-style" functions. The main influence for this is Python's coalescing or operator: the first non-falsy operand is returned.

rstrings

The rstrings package implements more niche or abbreviated string functions.

rruntime

The rruntime package contains useful runtime or meta functions.

rnet

The rnet package contains networking related functions.

Directories

Path Synopsis
pkg
rcollections
Package rcollections contains a (deprecated) interface and implementation for collections Deprecated: use GoDS instead
Package rcollections contains a (deprecated) interface and implementation for collections Deprecated: use GoDS instead
rmath
Package rmath contains mathematical operations, such as sum, min, max, abs, etc...
Package rmath contains mathematical operations, such as sum, min, max, abs, etc...
roper
Package roper implements operator-style functions, largely around coalescence or variadic operations
Package roper implements operator-style functions, largely around coalescence or variadic operations
rprof
Package rprof contains functions useful in runtime profiling of golang programs
Package rprof contains functions useful in runtime profiling of golang programs
rruntime
Package rruntime contains useful runtime or meta functions, including caller (function, filename, line) introspection and context.Context serialization/deserialization
Package rruntime contains useful runtime or meta functions, including caller (function, filename, line) introspection and context.Context serialization/deserialization
rstrings
Package rstrings contains string and file-based operations, such as reading a file into a string
Package rstrings contains string and file-based operations, such as reading a file into a string
runsafe
Package runsafe contains things that leverage the unsafe builtin package.
Package runsafe contains things that leverage the unsafe builtin package.

Jump to

Keyboard shortcuts

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