| 1 | // Copyright 2023 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 | //go:build go1.21 |
| 6 | |
| 7 | package cgocall |
| 8 | |
| 9 | import "go/types" |
| 10 | |
| 11 | func setGoVersion(tc *types.Config, pkg *types.Package) { |
| 12 | tc.GoVersion = pkg.GoVersion() |
| 13 | } |