5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 06:01:52 +08:00
wails/v2/internal/goversion/build_constraint.go
stffabi f1dc9eb4ef
[cli] Add check for minimum required go version (#1853)
- Update out of sync go.mod with minimum go version
- Check for minimum go version during build with build constraint
  “internal/goversion/build_constraint.go:9:2: MinGoVersionRequired (constant "You need Go 1.18 or newer to compile this program" of type string) is not used”
2022-09-15 07:28:28 +10:00

11 lines
195 B
Go

//go:build !go1.18
// +build !go1.18
package goversion
const MinGoVersionRequired = "You need Go " + MinRequirement + " or newer to compile this program"
func init() {
MinGoVersionRequired
}