github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/compile/internal/types/goversion.go (about) 1 // Copyright 2009 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package types 6 7 // AllowsGoVersion reports whether local package is allowed 8 // to use Go version major.minor. 9 func AllowsGoVersion(major, minor int) bool 10 11 // ParseLangFlag verifies that the -lang flag holds a valid value, and 12 // exits if not. It initializes data used by AllowsGoVersion. 13 func ParseLangFlag()