
Previously all (except one!) usage of goenv.Version manually added the git sha1 hash, leading to duplicate code. I've moved this to do it all in one place, to avoid this duplication.
16 строки
336 Б
Go
16 строки
336 Б
Go
package runtime
|
|
|
|
func Callers(skip int, pc []uintptr) int {
|
|
return 0
|
|
}
|
|
|
|
// buildVersion is the Tinygo tree's version string at build time.
|
|
//
|
|
// This is set by the linker.
|
|
var buildVersion string
|
|
|
|
// Version returns the Tinygo tree's version string.
|
|
// It is the same as goenv.Version().
|
|
func Version() string {
|
|
return buildVersion
|
|
}
|