C:\Go\src\runtime\internal\sys\zversion.go
- // Code generated by go tool dist; DO NOT EDIT.
-
- package sys
-
- const StackGuardMultiplierDefault = 1
-
- const TheVersion = `go1.19`
引入其他包的标识符
- package main
-
- import (
- "fmt"
- "gotest/test"
-
- )
-
- func main() {
- fmt.Println(test.StuNo)
- }
- package test
-
- var StuNo uint8 = 222
这样就可以引入了,不需要写很长的go path:src:一串的地址。但是我也没使用go mod呀,不知道为啥。教程里没写