You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
358 B

  1. package config
  2. // CurrentVersion declares the currently supported config version.
  3. //
  4. const CurrentVersion string = "v4"
  5. // VersionConfig contains a single field that allows for validation of the
  6. // config version independent from an entire Config struct.
  7. //
  8. type VersionConfig struct {
  9. Version string `json:"version" validate:"required,currentversion"`
  10. }