Skip to content

Commit

Permalink
Merge pull request #44 from gostaticanalysis/add-prefix-description
Browse files Browse the repository at this point in the history
Add description of SKELETON_PREFIX usage
  • Loading branch information
tenntenn authored Nov 12, 2021
2 parents 0d6cca6 + 0752ddb commit 7f3de02
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,14 @@ skeleton accepts `-kind` option which indicates kind of skeleton code.
* `-kind=ssa`: generate skeleton code with `buildssa.Analyzer`
* `-kind=codegen`: generate skeleton code of a code generator

### Module path with prefix

```sh
$ SKELETON_PREFIX=example.com skeleton pkgname
$ head -1 pkgname/go.mod
module example.com/pkgname
```

## Build as a plugin for golangci-lint

`skeleton` generates plugin directory which has main.go.
Expand Down

0 comments on commit 7f3de02

Please sign in to comment.