Source File
support_go118.go
Belonging Package
golang.org/x/tools/internal/gcimporter
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build go1.18
// +build go1.18
package gcimporter
import
const iexportVersion = iexportVersionGenerics
// additionalPredeclared returns additional predeclared types in go.1.18.
func () []types.Type {
return []types.Type{
// comparable
types.Universe.Lookup("comparable").Type(),
// any
types.Universe.Lookup("any").Type(),
}
}
// See cmd/compile/internal/types.SplitVargenSuffix.
func ( string) (, string) {
:= len()
for > 0 && [-1] >= '0' && [-1] <= '9' {
--
}
const = "ยท"
if >= len() && [-len():] == {
-= len()
return [:], [:]
}
return , ""
}
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)