├── .github ├── dependabot.yml └── workflows │ └── ci.yml ├── .gitignore ├── .go-header.yml ├── LICENSE ├── README.md ├── analyzer.go ├── analyzer_test.go ├── cmd └── go-header │ └── main.go ├── config.go ├── go.mod ├── go.sum ├── testdata ├── fix │ ├── blockcomment1.go │ ├── blockcomment1.go.golden │ ├── blockcomment2.go │ ├── blockcomment2.go.golden │ ├── blockcomment3.go │ ├── blockcomment3.go.golden │ ├── blockcomment4.go │ ├── blockcomment4.go.golden │ ├── blockcomment5.go │ ├── blockcomment5.go.golden │ ├── fix.yml │ ├── linecomment.go │ └── linecomment.go.golden ├── noheader │ ├── noheader.go │ ├── noheader.go.golden │ └── noheader.yml ├── regexpvalue_issue │ ├── regexpvalue_issue.go │ ├── regexpvalue_issue.go.golden │ └── regexpvalue_issue.yml ├── sample │ ├── sample.go │ ├── sample.go.golden │ └── sample.yml └── src │ ├── cgo │ ├── cgo.go │ └── cgo.yml │ ├── constvalue │ ├── constvalue.go │ └── constvalue.yml │ ├── constvalue2 │ ├── constvalue2.go │ └── constvalue2.yml │ ├── delimiters │ ├── delimiters.go │ └── delimiters.yml │ ├── gobuild │ ├── gobuild.go │ └── gobuild.yml │ ├── headercomment │ ├── headercomment.go │ └── headercomment.yml │ ├── nestedvalues │ ├── nestedvalues.go │ └── nestedvalues.yml │ ├── oldconfig │ ├── oldconfig.go │ └── oldconfig.yml │ ├── readme │ ├── readme.go │ └── readme.yml │ ├── regexpvalue │ ├── regexpvalue.go │ └── regexpvalue.yml │ ├── starcomment │ ├── starcomment.go │ └── starcomment.yml │ └── unicodeheader │ ├── unicodeheader.go │ └── unicodeheader.yml └── value.go /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ -------------------------------------------------------------------------------- /.go-header.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/.go-header.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/README.md -------------------------------------------------------------------------------- /analyzer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/analyzer.go -------------------------------------------------------------------------------- /analyzer_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/analyzer_test.go -------------------------------------------------------------------------------- /cmd/go-header/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/cmd/go-header/main.go -------------------------------------------------------------------------------- /config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/config.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/go.sum -------------------------------------------------------------------------------- /testdata/fix/blockcomment1.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/fix/blockcomment1.go -------------------------------------------------------------------------------- /testdata/fix/blockcomment1.go.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/fix/blockcomment1.go.golden -------------------------------------------------------------------------------- /testdata/fix/blockcomment2.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/fix/blockcomment2.go -------------------------------------------------------------------------------- /testdata/fix/blockcomment2.go.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/fix/blockcomment2.go.golden -------------------------------------------------------------------------------- /testdata/fix/blockcomment3.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/fix/blockcomment3.go -------------------------------------------------------------------------------- /testdata/fix/blockcomment3.go.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/fix/blockcomment3.go.golden -------------------------------------------------------------------------------- /testdata/fix/blockcomment4.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/fix/blockcomment4.go -------------------------------------------------------------------------------- /testdata/fix/blockcomment4.go.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/fix/blockcomment4.go.golden -------------------------------------------------------------------------------- /testdata/fix/blockcomment5.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/fix/blockcomment5.go -------------------------------------------------------------------------------- /testdata/fix/blockcomment5.go.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/fix/blockcomment5.go.golden -------------------------------------------------------------------------------- /testdata/fix/fix.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/fix/fix.yml -------------------------------------------------------------------------------- /testdata/fix/linecomment.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/fix/linecomment.go -------------------------------------------------------------------------------- /testdata/fix/linecomment.go.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/fix/linecomment.go.golden -------------------------------------------------------------------------------- /testdata/noheader/noheader.go: -------------------------------------------------------------------------------- 1 | package noheader 2 | -------------------------------------------------------------------------------- /testdata/noheader/noheader.go.golden: -------------------------------------------------------------------------------- 1 | // abc 2 | 3 | package noheader 4 | -------------------------------------------------------------------------------- /testdata/noheader/noheader.yml: -------------------------------------------------------------------------------- 1 | template: abc 2 | -------------------------------------------------------------------------------- /testdata/regexpvalue_issue/regexpvalue_issue.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/regexpvalue_issue/regexpvalue_issue.go -------------------------------------------------------------------------------- /testdata/regexpvalue_issue/regexpvalue_issue.go.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/regexpvalue_issue/regexpvalue_issue.go.golden -------------------------------------------------------------------------------- /testdata/regexpvalue_issue/regexpvalue_issue.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/regexpvalue_issue/regexpvalue_issue.yml -------------------------------------------------------------------------------- /testdata/sample/sample.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/sample/sample.go -------------------------------------------------------------------------------- /testdata/sample/sample.go.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/sample/sample.go.golden -------------------------------------------------------------------------------- /testdata/sample/sample.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/sample/sample.yml -------------------------------------------------------------------------------- /testdata/src/cgo/cgo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/src/cgo/cgo.go -------------------------------------------------------------------------------- /testdata/src/cgo/cgo.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/src/cgo/cgo.yml -------------------------------------------------------------------------------- /testdata/src/constvalue/constvalue.go: -------------------------------------------------------------------------------- 1 | // A 2020 2 | // B 3 | 4 | package constvalue 5 | -------------------------------------------------------------------------------- /testdata/src/constvalue/constvalue.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/src/constvalue/constvalue.yml -------------------------------------------------------------------------------- /testdata/src/constvalue2/constvalue2.go: -------------------------------------------------------------------------------- 1 | // A 2020 2 | // B 3 | 4 | package constvalue2 5 | -------------------------------------------------------------------------------- /testdata/src/constvalue2/constvalue2.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/src/constvalue2/constvalue2.yml -------------------------------------------------------------------------------- /testdata/src/delimiters/delimiters.go: -------------------------------------------------------------------------------- 1 | // A 2020 2 | // B 3 | 4 | package delimiters 5 | -------------------------------------------------------------------------------- /testdata/src/delimiters/delimiters.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/src/delimiters/delimiters.yml -------------------------------------------------------------------------------- /testdata/src/gobuild/gobuild.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/src/gobuild/gobuild.go -------------------------------------------------------------------------------- /testdata/src/gobuild/gobuild.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/src/gobuild/gobuild.yml -------------------------------------------------------------------------------- /testdata/src/headercomment/headercomment.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/src/headercomment/headercomment.go -------------------------------------------------------------------------------- /testdata/src/headercomment/headercomment.yml: -------------------------------------------------------------------------------- 1 | template: abc 2 | -------------------------------------------------------------------------------- /testdata/src/nestedvalues/nestedvalues.go: -------------------------------------------------------------------------------- 1 | // abcdefg 2 | 3 | package nestedvalues 4 | -------------------------------------------------------------------------------- /testdata/src/nestedvalues/nestedvalues.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/src/nestedvalues/nestedvalues.yml -------------------------------------------------------------------------------- /testdata/src/oldconfig/oldconfig.go: -------------------------------------------------------------------------------- 1 | /*mycompany.com*/ 2 | 3 | package oldconfig 4 | -------------------------------------------------------------------------------- /testdata/src/oldconfig/oldconfig.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/src/oldconfig/oldconfig.yml -------------------------------------------------------------------------------- /testdata/src/readme/readme.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/src/readme/readme.go -------------------------------------------------------------------------------- /testdata/src/readme/readme.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/src/readme/readme.yml -------------------------------------------------------------------------------- /testdata/src/regexpvalue/regexpvalue.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/src/regexpvalue/regexpvalue.go -------------------------------------------------------------------------------- /testdata/src/regexpvalue/regexpvalue.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/src/regexpvalue/regexpvalue.yml -------------------------------------------------------------------------------- /testdata/src/starcomment/starcomment.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/src/starcomment/starcomment.go -------------------------------------------------------------------------------- /testdata/src/starcomment/starcomment.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/testdata/src/starcomment/starcomment.yml -------------------------------------------------------------------------------- /testdata/src/unicodeheader/unicodeheader.go: -------------------------------------------------------------------------------- 1 | // 😊早安😊 2 | 3 | package unicodeheader 4 | -------------------------------------------------------------------------------- /testdata/src/unicodeheader/unicodeheader.yml: -------------------------------------------------------------------------------- 1 | template: 😊早安😊 2 | -------------------------------------------------------------------------------- /value.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/denis-tingaikin/go-header/HEAD/value.go --------------------------------------------------------------------------------