blob: 6162573555662f64d6028ac7fa3fbae263049c6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
package config
// CurrentVersion declares the currently supported config version.
//
const CurrentVersion string = "v2"
// VersionConfig contains a single field that allows for validation of the
// config version independent from an entire Config struct.
//
type VersionConfig struct {
Version string `yaml:"version" validate:"required,currentversion"`
}
|