17 lines
372 B
Go
17 lines
372 B
Go
package boolnames
|
|
|
|
import "github.com/golangci/plugin-module-register/register"
|
|
|
|
type Settings struct {
|
|
Whitelist []string `json:"whitelist"`
|
|
AllowedPrefixes []string `json:"allowed_prefixes"`
|
|
}
|
|
|
|
func decodeSettings(rawSettings any) (Settings, error) {
|
|
if rawSettings == nil {
|
|
return Settings{}, nil
|
|
}
|
|
|
|
return register.DecodeSettings[Settings](rawSettings)
|
|
}
|