https://github.com/chyroc/go-module-example
https://github.com/chyroc/go-module-example
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/chyroc/go-module-example
- Owner: chyroc
- Created: 2020-03-15T06:57:20.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-15T07:43:05.000Z (almost 6 years ago)
- Last Synced: 2025-01-29T08:23:33.202Z (11 months ago)
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go module 使用示例
### 多版本
```go
package main
import (
"fmt"
packageV1 "github.com/chyroc/go-module-example"
packageV2 "github.com/chyroc/go-module-example/v2"
)
func main() {
fmt.Println(packageV1.FuncA())
fmt.Println(packageV2.FuncB())
}
```