mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-02-21 17:05:29 -05:00
12 lines
201 B
Go
12 lines
201 B
Go
package defaults
|
|
|
|
// Setter is an interface for setting default values
|
|
type Setter interface {
|
|
SetDefaults()
|
|
}
|
|
|
|
func callSetter(v interface{}) {
|
|
if ds, ok := v.(Setter); ok {
|
|
ds.SetDefaults()
|
|
}
|
|
}
|