Skip to content

more-infra/base

Repository files navigation

more-infra/base

Github CI Go Report Card Release Go Reference License: MIT

The basic structures and design modes which could be used by projects.
It includes many typical and common data structures,functions for basic using.

Packages

name description
error basic struct for error interface which has more information wrapped
runner background goroutine controller with channel sign and sync.WaitGroup
status work status controller such as starting,started,stopping,stopped
element item container supports safe thread operations and provides simple features database used, such as index,search
queue chan with dynamic capacity
reactor reactor design mode for resolving sync locking and concurrent controlling, which is similar to event loop processing
mcontext put multiple contexts into one which implements the context.Context interface
chanpool do select for multiple channels which is ambiguous
trigger pack input elements stream to batch by controlling params or function
values strings matcher with multiple regex and wildcard pre-built
varfmt format string with variable by custom syntax and variable value provider
scheduler dynamic goroutine pool for executing tasks, which could be controlled by custom options
kv convert between struct object with tag defined and map[string]interface{} like json/yaml Marshal/Unmarshal do.

Development

Now, this project is in developing stage, so the code is changing frequently. A new version will be published every week at Friday.

About

Basic utility written by golang for project standard common code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages