Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.4% on proxy.golang.org
Top 1.8% dependent packages on proxy.golang.org
Top 3.5% dependent repos on proxy.golang.org

proxy.golang.org : github.com/kyoto-framework/zen

- 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:

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/kyoto-framework/zen
Keywords: async, go, nethttp, utils
License: MIT
Latest release: over 1 year ago
First release: almost 2 years ago
Namespace: github.com/kyoto-framework
Dependent packages: 8
Dependent repositories: 2
Stars: 12 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 27 days ago

    Loading...
    Readme
    Loading...