generics-for-go

module
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: MIT

README

Generics for go

A useful generic codes for go

godoc

Go Reference

types

types package is set of generic types.

option
result
pointer
tuple
pair
tripple

syntax

syntax package is a set of control flow with generic.

cond

cond has if, and switch.

pipe

pipe is a function pipeline.

iterable

iterable package gives iterable structure with slice or map.

collections

collections package a set of generic collections.

list
slice
table
set

test

test package gives some useful testing tool.

assert

Directories

Path Synopsis
collections
list
list is giving double linked list.
list is giving double linked list.
set
set is giving Set structure.
set is giving Set structure.
slice
slice is a package of Slice.
slice is a package of Slice.
table
table is giving Table structure.
table is giving Table structure.
interfaces
interfaces
operable
operable
operable
iterable is an interface that represents an iterable collection of elements.
iterable is an interface that represents an iterable collection of elements.
sequence
sequence
sequence
math is a package with some generic math functions.
math is a package with some generic math functions.
syntax
cond
cond gives condition control flow
cond gives condition control flow
pipe
pipe gives a function that can be used to chain functions together.
pipe gives a function that can be used to chain functions together.
assert
assert is a assertion library for test.
assert is a assertion library for test.
types
option
option is a type that represents optional values.
option is a type that represents optional values.
pointer
pointer is a pointer to a value of type T.
pointer is a pointer to a value of type T.
result
result is a helper for handling errors.
result is a helper for handling errors.
tuple
tuple is a readonly data set.
tuple is a readonly data set.
tuple/pair
pair is a pair of values of the two types.
pair is a pair of values of the two types.
tuple/tripple
tripple is a tripple of values with other types.
tripple is a tripple of values with other types.

Jump to

Keyboard shortcuts

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