Ecosyste.ms: Packages

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

Top 1.7% on proxy.golang.org
Top 1.8% dependent packages on proxy.golang.org
Top 0.8% dependent repos on proxy.golang.org
Top 2.8% forks on proxy.golang.org
Top 1.4% docker downloads on proxy.golang.org

proxy.golang.org : github.com/google/skylark

Package skylark provides a Skylark interpreter. Skylark values are represented by the Value interface. The following built-in Value types are known to the evaluator: Client applications may define new data types that satisfy at least the Value interface. Such types may provide additional operations by implementing any of these optional interfaces: Client applications may also define domain-specific functions in Go and make them available to Skylark programs. Use NewBuiltin to construct a built-in value that wraps a Go function. The implementation of the Go function may use UnpackArgs to make sense of the positional and keyword arguments provided by the caller. Skylark's None value is not equal to Go's nil, but nil may be assigned to a Skylark Value. Be careful to avoid allowing Go nil values to leak into Skylark data structures. The Compare operation requires two arguments of the same type, but this constraint cannot be expressed in Go's type system. (This is the classic "binary method problem".) So, each Value type's CompareSameType method is a partial function that compares a value only against others of the same type. Use the package's standalone Compare (or Equal) function to compare an arbitrary pair of values. To parse and evaluate a Skylark source file, use ExecFile. The Eval function evaluates a single expression. All evaluator functions require a Thread parameter which defines the "thread-local storage" of a Skylark thread and may be used to plumb application state through Sklyark code and into callbacks. When evaluation fails it returns an EvalError from which the application may obtain a backtrace of active Skylark calls.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/google/skylark
Keywords: go, language, python, skylark
License: BSD-3-Clause
Latest release: over 5 years ago
First release: over 5 years ago
Namespace: github.com/google
Dependent packages: 9
Dependent repositories: 59
Stars: 1,184 on GitHub
Forks: 86 on GitHub
Docker dependents: 1
Docker downloads: 198
See more repository details: repos.ecosyste.ms
Last synced: 2 days ago

    Loading...
    Readme
    Loading...