mirror of
https://github.com/42wim/matterbridge.git
synced 2024-12-10 19:22:00 -08:00
12 lines
248 B
Go
12 lines
248 B
Go
|
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
|
||
|
}
|