Documentation
¶
Index ¶
- Variables
- func Coerce[A any](c *runScope, source any) A
- func ReflectCoerce(c *runScope, sourceVal reflect.Value, targetType reflect.Type) (reflect.Value, bool)
- func RegisterEraser(t TypeEraser)
- func RegisterPackage(p *Package)
- func RegisterTransformer(t Transformer)
- func Run(ctx context.Context, script string) error
- func SafeCoerce[A any](c *runScope, source any) (A, bool)
- type GenericFunction
- type Number
- type Package
- type Transformer
- type TypeEraser
Constants ¶
This section is empty.
Variables ¶
View Source
var Out io.Writer
Functions ¶
func ReflectCoerce ¶
func RegisterEraser ¶
func RegisterEraser(t TypeEraser)
func RegisterPackage ¶
func RegisterPackage(p *Package)
func RegisterTransformer ¶
func RegisterTransformer(t Transformer)
func SafeCoerce ¶
Types ¶
type Number ¶
type Number interface {
constraints.Integer | constraints.Float
}
Click to show internal directories.
Click to hide internal directories.