Documentation ¶
Index ¶
- Variables
- func FmtCheck(path string, cfg FmtConfig) error
- func FmtFix(path string, cfg FmtConfig) error
- func UnpackDistructTo(v starlark.Value, pairs ...interface{}) error
- func UnpackOne(v starlark.Value, target any) error
- type Distruct
- type FmtConfig
- type KV
- type Listable
- type StringItem
- type StringItems
Constants ¶
This section is empty.
Variables ¶
View Source
var Fmt = starfmt.Fmt
Functions ¶
func UnpackDistructTo ¶
Types ¶
type Distruct ¶
type Distruct struct {
// contains filtered or unexported fields
}
Distruct is a Type that can unpack a string-keyed dist or struct
func (*Distruct) Items ¶
func (s *Distruct) Items() StringItems
type KV ¶
type KV interface {
Items() StringItems
}
type StringItem ¶
type StringItems ¶
type StringItems []StringItem
func (StringItems) Tuples ¶
func (s StringItems) Tuples() []starlark.Tuple
Click to show internal directories.
Click to hide internal directories.