MCPcopy
hub / github.com/purpleidea/mgmt / StmtImport

Struct StmtImport

lang/ast/structs.go:7216–7223  ·  view source on GitHub ↗

StmtImport adds the exported scope definitions of a module into the current scope. It can be used anywhere a statement is allowed, and can even be nested inside a class definition. By convention, it is commonly used at the top of a file. As with any statement, it produces output, but that output is

Source from the content-addressed store, hash-verified

7214// file. As with any statement, it produces output, but that output is empty. To
7215// benefit from its inclusion, reference the scope definitions you want.
7216type StmtImport struct {
7217 interfaces.Textarea
7218
7219 data *interfaces.Data
7220
7221 Name string
7222 Alias string
7223}
7224
7225// String returns a short representation of this statement.
7226func (obj *StmtImport) String() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected