📂 FileMgr
📍
/
opt
/
golang
/
1.22.0
/
src
/
cmd
/
go
/
internal
/
cfg
✏️ /
⬅ Kembali
// Copyright 2023 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. package cfg import ( "cmd/go/internal/par" "os/exec" ) var lookPathCache par.ErrCache[string, string] // LookPath wraps exec.LookPath and caches the result // which can be called by multiple Goroutines at the same time. func LookPath(file string) (path string, err error) { return lookPathCache.Do(file, func() (string, error) { return exec.LookPath(file) }) }
💾 Simpan
Batal
⬅ internal
4 item
Nama
Tipe
Ukuran
Diubah
Aksi
🔵
bench_test.go
go
404 B
2024-02-02 18:09
✏️
👁️
🔤
🗑
🔵
cfg.go
go
18.1 KB
2024-02-02 18:09
✏️
👁️
🔤
🗑
🔵
lookpath.go
go
534 B
2024-02-02 18:09
✏️
👁️
🔤
🗑
🔵
zdefaultcc.go
go
443 B
2024-02-02 18:09
✏️
👁️
🔤
🗑
✏️ Rename
Nama Baru
Simpan
Batal