1 | // Copyright 2022 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.18 |
6 | // +build !go1.18 |
7 | |
8 | package gcimporter |
9 | |
10 | import ( |
11 | "fmt" |
12 | "go/token" |
13 | "go/types" |
14 | ) |
15 | |
16 | func UImportData(fset *token.FileSet, imports map[string]*types.Package, data []byte, path string) (_ int, pkg *types.Package, err error) { |
17 | err = fmt.Errorf("go/tools compiled with a Go version earlier than 1.18 cannot read unified IR export data") |
18 | return |
19 | } |
20 |
Members