github.com/kyoto-framework/zen (go): -  Zen provides some generic aggregative functions for slices.  -  Zen provides simple arithmetic functions for sets of values: Sum, Sub, Mul, Div. Main point is to provide runtime template functions (which are missing in the built-in html/template).  -  Zen provides a way to define and run asynchronous functions. It's based on Go's standard goroutines and channels. Future object holds value channel and error. It's used as an awaitable object. As far as Go is not provides an async/await syntax, your function must to return a Future, provided by Async function.  Example:  -  Zen provides a generic atomic wrapper, based on RWMutex. Usually, actions are performed with Get and Set methods. For complex cases (like simultaneous Get and Set), Atomic provides a Context method which allows to pass a function and lock a mutex for the duration of the function.  Example:  -  Zen provides a comfortable way to work with slices casting ([]any).  Example:  -  Zen provides some useful formatting functions.  Examples:  -  Logical expressions from another languages, but missing in Go.  Examples:  -  Zen provides a simple  helper function that wraps a call to a function returning value and error, and panics if the error is non-nil.  Example:  -  Zen provides some generic functions for basic slice operations.  Examples:  -  Zen provides a *http.Response wrapper with a few useful extra methods. It allows to operate with wrapped response in a more convenient way. Check status code, dump response to stdout for debug, convert into map or decode directly into value. Almost everything in single line of code.  Example:  -  Zen provides a number of functions that can be used to transform data into different types and forms. Most of these functions are working with base data types.  Examples:
Keywords: async|go|nethttp|utils