Documentation
¶
Index ¶
- Variables
- type ImportModule
- func (m *ImportModule) AddHandler() tengo.CallableFunc
- func (m *ImportModule) AddHook() tengo.CallableFunc
- func (m *ImportModule) AsImmutableMap(name string) *tengo.ImmutableMap
- func (m *ImportModule) Call(args ...tengo.Object) (tengo.Object, error)
- func (m *ImportModule) CanCall() bool
- func (m *ImportModule) Copy() tengo.Object
- func (m *ImportModule) Debug() tengo.CallableFunc
- func (m *ImportModule) Equals(_ tengo.Object) bool
- func (m *ImportModule) Error() tengo.CallableFunc
- func (m *ImportModule) Fields() tengo.CallableFunc
- func (m *ImportModule) FloatField() tengo.CallableFunc
- func (m *ImportModule) Import(name string) (interface{}, error)
- func (m *ImportModule) IndexGet(arg tengo.Object) (tengo.Object, error)
- func (m *ImportModule) Info() tengo.CallableFunc
- func (m *ImportModule) IntField() tengo.CallableFunc
- func (m *ImportModule) SetLevel() tengo.CallableFunc
- func (m *ImportModule) String() string
- func (m *ImportModule) StringField() tengo.CallableFunc
- func (m *ImportModule) TimeField() tengo.CallableFunc
- func (m *ImportModule) TypeName() string
- func (m *ImportModule) Version() string
- func (m *ImportModule) Warn() tengo.CallableFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Importable tengo.Importable = NewTrace()
)
Functions ¶
This section is empty.
Types ¶
type ImportModule ¶
type ImportModule struct { tengo.ObjectImpl Attrs map[string]tengo.Object // contains filtered or unexported fields }
func NewTrace ¶
func NewTrace() *ImportModule
func (*ImportModule) AddHandler ¶
func (m *ImportModule) AddHandler() tengo.CallableFunc
AddHandler adds a new slog.Handler to ImportModule
func (*ImportModule) AddHook ¶
func (m *ImportModule) AddHook() tengo.CallableFunc
func (*ImportModule) AsImmutableMap ¶
func (m *ImportModule) AsImmutableMap(name string) *tengo.ImmutableMap
AsImmutableMap converts builtin module into an immutable map.
func (*ImportModule) Call ¶
func (m *ImportModule) Call(args ...tengo.Object) (tengo.Object, error)
func (*ImportModule) CanCall ¶
func (m *ImportModule) CanCall() bool
func (*ImportModule) Copy ¶
func (m *ImportModule) Copy() tengo.Object
Copy returns a copy of the type.
func (*ImportModule) Debug ¶
func (m *ImportModule) Debug() tengo.CallableFunc
func (*ImportModule) Equals ¶
func (m *ImportModule) Equals(_ tengo.Object) bool
Equals returns true if the value of the type is equal to the value of another object.
func (*ImportModule) Error ¶
func (m *ImportModule) Error() tengo.CallableFunc
func (*ImportModule) Fields ¶
func (m *ImportModule) Fields() tengo.CallableFunc
func (*ImportModule) FloatField ¶
func (m *ImportModule) FloatField() tengo.CallableFunc
func (*ImportModule) Import ¶
func (m *ImportModule) Import(name string) (interface{}, error)
Import returns an immutable map for the module.
func (*ImportModule) IndexGet ¶
func (m *ImportModule) IndexGet(arg tengo.Object) (tengo.Object, error)
func (*ImportModule) Info ¶
func (m *ImportModule) Info() tengo.CallableFunc
func (*ImportModule) IntField ¶
func (m *ImportModule) IntField() tengo.CallableFunc
func (*ImportModule) SetLevel ¶
func (m *ImportModule) SetLevel() tengo.CallableFunc
func (*ImportModule) String ¶
func (m *ImportModule) String() string
func (*ImportModule) StringField ¶
func (m *ImportModule) StringField() tengo.CallableFunc
func (*ImportModule) TimeField ¶
func (m *ImportModule) TimeField() tengo.CallableFunc
func (*ImportModule) TypeName ¶
func (m *ImportModule) TypeName() string
TypeName returns the name of the type.
func (*ImportModule) Version ¶ added in v0.2.0
func (m *ImportModule) Version() string
func (*ImportModule) Warn ¶
func (m *ImportModule) Warn() tengo.CallableFunc
Click to show internal directories.
Click to hide internal directories.