github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/dist/build.go (about)

     1  // Copyright 2012 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 main
     6  
     7  // IsRuntimePackagePathは 'pkgpath' を調べ、それが「ランタイム関連」のパッケージコレクションに属している場合はTRUEを返します。これには、"runtime"自体、"reflect"、"syscall"、および"runtime/internal/*"パッケージが含まれます。
     8  // cmd/internal/objabi/path.goとの同期を維持してください。:IsRuntimePackagePath
     9  func IsRuntimePackagePath(pkgpath string) bool