gog

package module
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 0 Imported by: 0

README

gog

Package gog provides some generic libraries.

⚠️WARNING: this repo is still under development, we found that the stdlib iter.Seq has not good performance in some simple cases.

  • gstd provides some wrappers for standard library like sync.Map, sync.Pool, etc.
  • gmutex provides some generics utils with mutex.
  • gstl provides all kinds of containers stl.
  • gslice provides some utils for slices.

codecov

generics library for golang

Interfaces

Slices

Changelog

v0.1.4:

  • Implement more slice tools like subset, replace, reverse, etc.

v0.1.3:

  • Implement slice tools ()
    • gslice.*

v0.1.2:

  • Implement stl containers
    • stack
    • list

v0.1.1:

  • Implement locked value provides interface like rust
    • gmutex.RWLockedValue
    • gmutex.LockedValue

v0.1.0:

  • Initial repo
  • Implement wrappers for following types
    • sync.Map
    • sync.Pool

Documentation

Overview

Package gog is generics library for golang.

Directories

Path Synopsis
Package giter provides the abstraction of map, slice or channel types into iterators for common processing
Package giter provides the abstraction of map, slice or channel types into iterators for common processing
Package gslice provides some useful functions for slice.
Package gslice provides some useful functions for slice.
Package gstl provides some containers like list, stack, etc.
Package gstl provides some containers like list, stack, etc.
Package gsync provides some generics wrappers for some standard libraries like sync.Map, sync.Pool, sync.Mutext etc.
Package gsync provides some generics wrappers for some standard libraries like sync.Map, sync.Pool, sync.Mutext etc.
internal
constraints
Package constraints defined constraints for generics tools
Package constraints defined constraints for generics tools
Package optional provides a type which can be used to represent a value that may or may not be present like option in Rust.
Package optional provides a type which can be used to represent a value that may or may not be present like option in Rust.

Jump to

Keyboard shortcuts

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