diff options
Diffstat (limited to 'vendor/github.com/d5/tengo/objects/source_module.go')
-rw-r--r-- | vendor/github.com/d5/tengo/objects/source_module.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/github.com/d5/tengo/objects/source_module.go b/vendor/github.com/d5/tengo/objects/source_module.go new file mode 100644 index 00000000..577fddf2 --- /dev/null +++ b/vendor/github.com/d5/tengo/objects/source_module.go @@ -0,0 +1,11 @@ +package objects + +// SourceModule is an importable module that's written in Tengo. +type SourceModule struct { + Src []byte +} + +// Import returns a module source code. +func (m *SourceModule) Import(_ string) (interface{}, error) { + return m.Src, nil +} |