mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-22 02:47:48 +08:00
* chore: apply go fix modernizers from Go 1.26
automated refactoring: interface{} to any, slices.Contains,
and other idiomatic updates.
* feat(ci): add `go fix` check to Go analysis workflow
ensures Go 1.26 modernizers are applied, fails CI if `go fix ./...`
produces any changes (similar to existing `go fmt` enforcement)
12 lines
214 B
Go
12 lines
214 B
Go
package config
|
|
|
|
type Plugins struct {
|
|
Plugins map[string]Plugin
|
|
// TODO: Loader Path? Leaving that out for now due to security concerns.
|
|
}
|
|
|
|
type Plugin struct {
|
|
Disabled bool
|
|
Config any `json:",omitempty"`
|
|
}
|