-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/fillstruct: add option to select by line number. (#8)
The new command line parameter -line can be used to specify the position of one or more struct literals by providing the corresponding line number. If both parameters, -offset and -line, are provided, then the tool first uses the more specific offset information. If there was no struct literal found at the given offset, then the line information is used. If more than one struct literal was found, code to fill all of them is generated. The output is a JSON array with the elements in reverse order of their occurence. Fixes #3.
- Loading branch information
David R. Jenni
authored
Dec 13, 2017
1 parent
ed200a5
commit cdebcee
Showing
2 changed files
with
134 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters