mgechev / revive

🔥 ~6x faster, stricter, configurable, extensible, and beautiful drop-in replacement for golint
https://revive.run
MIT License
4.73k stars 276 forks source link

How to detect with build flags? #891

Open lucylovesyou opened 11 months ago

lucylovesyou commented 11 months ago
work.go
work_darwin.go
work_linux.go
work_windows.go

For those files, revive only works that corresponding platform. e.g. on macOS it detects work_darwin.go only, and on Ubuntu, it works for work_linux.go