github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/internal/goobj/builtin.go (about)

     1  // Copyright 2019 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 goobj
     6  
     7  // NBuiltin returns the number of listed builtin
     8  // symbols.
     9  func NBuiltin() int
    10  
    11  // BuiltinName returns the name and ABI of the i-th
    12  // builtin symbol.
    13  func BuiltinName(i int) (string, int)
    14  
    15  // BuiltinIdx returns the index of the builtin with the
    16  // given name and abi, or -1 if it is not a builtin.
    17  func BuiltinIdx(name string, abi int) int