Skip to content

raidancampbell/libraidan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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.

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

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.

The rstrings package implements more niche or abbreviated string functions.

The rruntime package contains useful runtime or meta functions.

The rnet package contains networking related functions.

About

A general-purpose golang library

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages