blob: 577fddf2dbb7a6d26eaca2b6e7c0a77b740607dc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
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
}
|