MCPcopy Create free account
hub / github.com/d5/tengo / ObjectImpl

Struct ObjectImpl

objects.go:86–87  ·  view source on GitHub ↗

ObjectImpl represents a default Object Implementation. To defined a new value type, one can embed ObjectImpl in their type declarations to avoid implementing all non-significant methods. TypeName() and String() methods still need to be implemented.

Source from the content-addressed store, hash-verified

84// implementing all non-significant methods. TypeName() and String() methods
85// still need to be implemented.
86type ObjectImpl struct {
87}
88
89// TypeName returns the name of the type.
90func (o *ObjectImpl) TypeName() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected