Documentation ¶ Index ¶ type Rewriter func New(data []byte, base int) *Rewriter func (r *Rewriter) Data() []byte func (r *Rewriter) Delete(start, end token.Pos) func (r *Rewriter) Insert(start token.Pos, data []byte) func (r *Rewriter) Replace(start, end token.Pos, data []byte) func (r *Rewriter) ReplaceNode(node ast.Node, data []byte) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Rewriter ¶ type Rewriter struct { // contains filtered or unexported fields } func New ¶ func New(data []byte, base int) *Rewriter func (*Rewriter) Data ¶ func (r *Rewriter) Data() []byte func (*Rewriter) Delete ¶ func (r *Rewriter) Delete(start, end token.Pos) func (*Rewriter) Insert ¶ func (r *Rewriter) Insert(start token.Pos, data []byte) func (*Rewriter) Replace ¶ func (r *Rewriter) Replace(start, end token.Pos, data []byte) func (*Rewriter) ReplaceNode ¶ func (r *Rewriter) ReplaceNode(node ast.Node, data []byte) Source Files ¶ View all Source files rewrite.go Click to show internal directories. Click to hide internal directories.