Logo
Explore Help
Register Sign In
admin/llgo
1
0
Fork 0
You've already forked llgo
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
2e0fc5fb7f122bdc5ed35e2fe494a84ce75100fb
llgo/_demo/go/gobuild/demo.go

18 lines
311 B
Go
Raw Normal View History

refactor: move go/build overlay to runtime/internal for minimal patching - Moved full overlay file from runtime/_overlay/go/build/build.go to runtime/internal/go/build/build.go to make it clearer what's being overridden - Updated runtime/overlay.go to embed from new location - Created demo under _demo/go/gobuild to demonstrate go/build package working with llgo - The overlay still contains the full file but is now organized under runtime/internal following the project's pattern for patched standard library packages Fixes #1346 Generated with [codeagent](https://github.com/qbox/codeagent) Co-authored-by: luoliwoshang <luoliwoshang@users.noreply.github.com>
2025-10-15 12:17:38 +00:00
package main
import (
"fmt"
"go/build"
"runtime"
)
func main() {
fmt.Printf("runtime.Compiler = %q\n", runtime.Compiler)
pkg, err := build.Import("fmt", "", build.FindOnly)
if err != nil {
panic(err)
}
fmt.Printf("Package: %s\n", pkg.ImportPath)
fmt.Printf("Success! go/build works with llgo\n")
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 37ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API