ExportValue adds an export ValueSpec to the module.
(name string, spec ValueSpec)
| 55 | |
| 56 | // ExportValue adds an export ValueSpec to the module. |
| 57 | func (mb *ModuleBuilder) ExportValue(name string, spec ValueSpec) *ModuleBuilder { |
| 58 | mb.exports = append(mb.exports, ModuleExportEntry{ |
| 59 | Name: name, |
| 60 | Spec: spec, |
| 61 | }) |
| 62 | return mb |
| 63 | } |
| 64 | |
| 65 | // ExportLiteral adds a literal export definition to the module. |
| 66 | func (mb *ModuleBuilder) ExportLiteral(name string, value interface{}) *ModuleBuilder { |
no outgoing calls