跨包引用
This commit is contained in:
4
packages/stg.go
Normal file
4
packages/stg.go
Normal file
@@ -0,0 +1,4 @@
|
||||
package stg
|
||||
|
||||
var Stg string = "STG_TEST" // 可以用
|
||||
var test string = "test" // 用不了,跨包使用要大写
|
||||
Reference in New Issue
Block a user