Documentation ¶
Index ¶
- func FprintErr(w io.Writer, err error)
- func FprintStatus(w io.Writer, status *spb.Status)
- func NewGlobals() starlark.StringDict
- func RunBenches(b *testing.B, pattern string, globals starlark.StringDict)
- func RunTests(t *testing.T, pattern string, globals starlark.StringDict)
- type Args
- type Completer
- type Loader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGlobals ¶
func NewGlobals() starlark.StringDict
func RunBenches ¶
func RunBenches(b *testing.B, pattern string, globals starlark.StringDict)
RunBenches calls starlarkassert.RunBenches with options for larking libraries. To use add it to a Benchmark function:
func BenchmarkStarlark(b *testing.B) { starlib.RunBenches(b, "testdata/*.star", nil) }
Types ¶
type Completer ¶
type Completer struct {
starlark.StringDict
}
Completer is an experimental autocompletion for starlark lines. TODO: drop and switch to a proper language server.
type Loader ¶
Loader is a cloid.Blob backed loader. It uses thread.Name to figure out the current bucket and module.
func NewLoader ¶
func NewLoader(globals starlark.StringDict) *Loader
func (*Loader) LoadSource ¶
LoadSource fetches the source file in bytes from a bucket.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
archive
|
|
starlarktar
https://pkg.go.dev/archive/tar
|
https://pkg.go.dev/archive/tar |
starlarkzip
https://pkg.go.dev/archive/zip
|
https://pkg.go.dev/archive/zip |
encoding
|
|
starlarkproto
Package starlarkproto provides support for protocol buffers.
|
Package starlarkproto provides support for protocol buffers. |
net
|
|
starlarkhttp
Package http provides HTTP client implementations.
|
Package http provides HTTP client implementations. |
Package blob provides access to blob objects within a storage location.
|
Package blob provides access to blob objects within a storage location. |
Package starlarkdocstore supports noSQL document databases.
|
Package starlarkdocstore supports noSQL document databases. |
Package errors implements functions to manipulate errors.
|
Package errors implements functions to manipulate errors. |
Package starlarkio implements readers and writers.
|
Package starlarkio implements readers and writers. |
Package starlarkpubsub provides methods for publishing and recieving messages.
|
Package starlarkpubsub provides methods for publishing and recieving messages. |
Laze is a task scheduler inspired by Bazel and the Go build tool.
|
Laze is a task scheduler inspired by Bazel and the Go build tool. |
Package runtimevar adds configuration variables at runtime.
|
Package runtimevar adds configuration variables at runtime. |
Package sql provides an interface to conntect to SQL databases.
|
Package sql provides an interface to conntect to SQL databases. |
Package starlarkstruct defines the Starlark types 'struct' and 'module', both optional language extensions.
|
Package starlarkstruct defines the Starlark types 'struct' and 'module', both optional language extensions. |
Click to show internal directories.
Click to hide internal directories.