MCPcopy Create free account
hub / github.com/bracesdev/errtrace / insertImportErrtrace

Struct insertImportErrtrace

cmd/errtrace/main.go:1047–1050  ·  view source on GitHub ↗

insertImportErrtrace adds an import declaration to the file right after the given node.

Source from the content-addressed store, hash-verified

1045// insertImportErrtrace adds an import declaration to the file
1046// right after the given node.
1047type insertImportErrtrace struct {
1048 AddKeyword bool // whether the "import" keyword should be added
1049 At token.Pos // position to insert at
1050}
1051
1052func (e *insertImportErrtrace) Pos() token.Pos {
1053 return e.At

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected