https://github.com/devlights/gomodversion
Repository that test golang module versioning.
https://github.com/devlights/gomodversion
go go113 golang
Last synced: about 2 months ago
JSON representation
Repository that test golang module versioning.
- Host: GitHub
- URL: https://github.com/devlights/gomodversion
- Owner: devlights
- License: mit
- Created: 2019-12-18T12:42:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-19T08:50:04.000Z (over 5 years ago)
- Last Synced: 2025-02-12T08:58:25.595Z (3 months ago)
- Topics: go, go113, golang
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gomodversion
Repository that test golang module versioning.
## Try
### no version specified (from v0.0.0 to v1.9.9)
```sh
$ go list -versions -m github.com/devlights/gomodversion
github.com/devlights/gomodversion v0.0.1 v0.1.0 v1.0.0 v1.0.1 v1.0.2 v1.1.0 v1.1.1 v1.1.2
``````go
package mainimport (
"fmt"ver "github.com/devlights/gomodversion"
)func main() {
fmt.Println(ver.Hello()) // OUTPUT: HELLO
}
```### v2
```sh
$ go list -versions -m github.com/devlights/gomodversion/v2
github.com/devlights/gomodversion/v2 v2.0.0 v2.0.1 v2.0.2
``````go
package mainimport (
"fmt"ver "github.com/devlights/gomodversion/v2"
)func main() {
fmt.Println(ver.Hello()) // OUTPUT: --**HELLO**--
}
```### v3
```sh
$ go list -versions -m github.com/devlights/gomodversion/v3
github.com/devlights/gomodversion/v3 v3.0.0 v3.0.1
``````go
package mainimport (
"fmt"ver "github.com/devlights/gomodversion/v3"
)func main() {
fmt.Println(ver.Hello()) // OUTPUT: |--**HELLO WORLD**--|
}
```### v4
```sh
$ go list -versions -m github.com/devlights/gomodversion/v4
github.com/devlights/gomodversion/v4 v4.0.0 v4.0.1
``````go
package mainimport (
"fmt"ver "github.com/devlights/gomodversion/v4"
)func main() {
fmt.Println(ver.Hello()) // OUTPUT: ^^|--**HELLO WORLD**--|^^
}
```