srcutils

module
v0.0.0-...-5d41a1c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2015 License: ISC

README

srcutils

utilities to perform modifications on golang codebases

  • license: isc

Installation

$ go get github.com/tmc/srcutils/cmd/add_argument

Utilities

add_argument

Adds a new argument to a codebase.

Example:

$ add_argument -w -arg="ctx context.Context" -pos=$GOPATH/src/github.com/tmc/srcutils/test/original/z.go:#26 github.com/tmc/srcutils/test/original

Produces the diff: https://github.com/tmc/srcutils/commit/e70de1db99149dcf51940d1abbba0beba9779506

Directories

Path Synopsis
cmd
add_argument
Program add_argument inserts a new argument into a function and all of it's callers Example: $ add_argument -arg="foo int" -pos=$GOPATH/src/github.com/tmc/srcutils/test/original/z.go:#20 github.com/tmc/srcutils/test/original
Program add_argument inserts a new argument into a function and all of it's callers Example: $ add_argument -arg="foo int" -pos=$GOPATH/src/github.com/tmc/srcutils/test/original/z.go:#20 github.com/tmc/srcutils/test/original
test

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL