"github.com/syncthing/syncthing/lib/structutil" )var validVersionRegex = regexp.MustCompile(`^v[0-9]\..*`)type Report struct { // Generated Received time.Time `json:"-"` // Only from DB @@ -191,22 +193,14 @@ func (r *Report) Validate() error {...