Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,12 @@ func (c *baseConfig) Clone() baseConfig {
return copy
}

type ConfigEditor func(*config)
type Config *config

type ConfigEditor func(Config)

func WithHostname(hostname string) ConfigEditor {
return func(c *config) {
return func(c Config) {
c.Hostname = hostname
}
}
Expand Down