18 lines
311 B
Go
18 lines
311 B
Go
|
|
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")
|
||
|
|
}
|