25 Resources
Golang slices Libraries
🍕 Enjoy a slice! A utility library for dealing with slices and maps that focuses on type safety and performance.
🍕 github.com/elliotchance/pie Enjoy a slice! pie is a library of utility functions for common operations on slices and maps. Quick Start FAQ What are
Generic utility methods for Go slices / arrays / collections, heavily inspired by Lodash.
slicy import "github.com/sudhirj/slicy" Usage func All func All[S ~[]T, T any](slice S, predicate func(value T, index int, slice S) bool) bool All re
Tutorial code for my video Learn to Use Basic Data Structures - Slices, Structs and Maps in Golang
Learn to Use Basic Data Structures - Slices, Structs and Maps in Golang Read text from a file and split into words. Introduction to slices / lists. Co
Functions that operate on slices. Similar to functions from package strings or package bytes that have been adapted to work with slices.
Slices Functions that operate on slices. Similar to functions from package strings or package bytes that have been adapted to work with slices. Featur
Golang: unify nil and empty slices and maps
unifynil, unify nil and empty slices and maps in Golang Empty slices and maps can be nil or not nil in Go. It may become a nightmare in tests and JSON
A go1.18+ package to (maybe) simplify performing operations on slices in a fluent-like style.
sop ✨ W.I.P. ✨ sop (slices operation) is a go1.18+ package to (maybe) simplify performing operations on slices in a fluent-like style with common oper
A Go package that provides a simple way of accessing nested properties in maps and slices.
and you shall receive. Ask provides a simple way of accessing nested properties in maps and slices. Works great in combination with encoding/json and
Helper functions for the manipulation of slices of all types in Go
go-slices Unlike many other programming languages, Go doesn't provide helper functions for slices in it's core. I felt like this was quite an essentia
A mutable radix tree that uses byte slices for keys.
go-radixtree An implementation of a mutable radix tree that uses byte slices for keys. Insertion, deletion and searching operations all have a worst c
A StreamLike, Immutable, Lazy Loading and smart Golang Library to deal with slices.
Koazee Lazy like a koala, smart like a chimpanzee What is Koazee? Koazee is a StreamLike, Immutable, Lazy Loading and smart Golang Library to deal wit
Type-safe functions for common Go slice operations
Type-safe functions for common Go slice operations. Installation go get github.com/psampaz/slice Operations ✔ = Supported ✕ = Non supported - = Not y
Utility class for handling slices
Utility class for handling slices. Install go get -u github.com/leaanthony/slicer Quick Start import "github.com/leaanthony/slicer" func test() {
Generic slices for Go 1.8+
Slice A simple package that makes working with slices a little bit easier with the help of generics. Install go get github.com/twharmon/slice Example
generic sort for slices in golang
slices generic sort for slices in golang basic API func BinarySearch[E constraints.Ordered](list []E, x E) int func IsSorted[E constraints.Ordered](li
Create deep copies (clones) of your maps and slices without using reflection.
DeepCopy DeepCopy helps you create deep copies (clones) of your maps and slices. Create deep copies (clones) of your objects The package is based on t
SliceX provides functional operations on Go slices using Go 1.18 type parameters.
SliceX provides functional operations on Go slices using Go 1.18 type parameters.
A Go package for checking conditions for slices and maps.
check Go package The check package of Go helps one to check various conditions for slices: []int []float64 []string []bool maps: map[string]int map[st
Bitwise AND on two byte-slices using SIMD instructions
This package provides a vectorised function which performs bitwise AND operation on all pairs of elements in two byte-slices. It detects CPU instruction set and chooses the available best one (AVX512, AVX2, SSE2).
Scan database/sql rows directly to structs, slices, and primitive types
Scan Scan standard lib database rows directly to structs or slices. For the most comprehensive and up-to-date docs see the godoc Examples Multiple Row
ByNom is a Go package for parsing byte sequences, suitable for parsing text and binary data
ByNom is a Go package for parsing byte sequences. Its goal is to provide tools to build safe byte parsers without compromising the speed or memo
Slice graph uses graphviz in order to pretty print slices for you.
slicegraph Slice graph uses graphviz in order to make you understand what happens underneath your slices.
Go package for dealing with maps, slices, JSON and other data.
Objx Objx - Go package for dealing with maps, slices, JSON and other data. Get started: Install Objx with one line of code, or update it with another
Helper functions for the manipulation of slices of all types in Go
go-slices Unlike many other programming languages, Go doesn't provide helper functions for slices in it's core. I felt like this was quite an essentia
[Go] Package of validators and sanitizers for strings, numerics, slices and structs
govalidator A package of validators and sanitizers for strings, structs and collections. Based on validator.js. Installation Make sure that Go is inst
[Go] Package of validators and sanitizers for strings, numerics, slices and structs
govalidator A package of validators and sanitizers for strings, structs and collections. Based on validator.js. Installation Make sure that Go is inst