Houtmann / go-sort

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-sort

Create plugin for golangci-lint

go build -o gosort.so -buildmode=plugin ./plugin/

In .golangci.yml

linters-settings:
  custom:
    gosort:
      path: gosort.so
      description: go-sort linter check if struct fields are sorted
      original-url: github.com/Houtmann/go-sort

and add

linters:
  disable-all: true
  enable:
    - gosort

About


Languages

Language:Go 100.0%