Skip to content

tmc/srcutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

tools to modify go programs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages