build: move the module path to /v2
Test / test (push) Successful in 1m32s

Assisted-by: GLM 5.3 Flash
This commit is contained in:
2026-09-19 00:14:39 +02:00
parent ad6c32d0c6
commit 1c7329aeea
8 changed files with 14 additions and 8 deletions
+6
View File
@@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
-
### Changed
- The module path carries the /v2 suffix the Go toolchain requires of
every major version 2 module: imports change to
`sourcedock.dev/petrbalvin/interpres/v2`.
## [1.1.0] - 2026-09-18
### Added
+1 -1
View File
@@ -29,7 +29,7 @@ the entire official [toml-test](https://github.com/toml-lang/toml-test) suite:
As a library:
```sh
go get sourcedock.dev/petrbalvin/interpres
go get sourcedock.dev/petrbalvin/interpres/v2
```
Requires Go 1.27.1 or newer. The module imports only the standard library.
+1 -1
View File
@@ -25,7 +25,7 @@ import (
"strconv"
"time"
"sourcedock.dev/petrbalvin/interpres"
"sourcedock.dev/petrbalvin/interpres/v2"
)
func main() {
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"testing"
"time"
"sourcedock.dev/petrbalvin/interpres"
"sourcedock.dev/petrbalvin/interpres/v2"
)
func TestRunParsesValidTOML(t *testing.T) {
+2 -2
View File
@@ -1,10 +1,10 @@
# API
The library exports the surface below from the `sourcedock.dev/petrbalvin/interpres`
The library exports the surface below from the `sourcedock.dev/petrbalvin/interpres/v2`
package. The snippets assume:
```go
import "sourcedock.dev/petrbalvin/interpres"
import "sourcedock.dev/petrbalvin/interpres/v2"
```
The parser accepts TOML 1.0 documents plus the TOML 1.1 extensions: date-times
+1 -1
View File
@@ -5,7 +5,7 @@ the toml-test harness adapter, and it also validates documents. Install it
with Go itself, no release assets involved:
```sh
go install sourcedock.dev/petrbalvin/interpres/cmd/interpres-decode@latest
go install sourcedock.dev/petrbalvin/interpres/v2/cmd/interpres-decode@latest
```
## Synopsis
+1 -1
View File
@@ -13,7 +13,7 @@ import (
"os"
"time"
"sourcedock.dev/petrbalvin/interpres"
"sourcedock.dev/petrbalvin/interpres/v2"
)
// document is a small but realistic configuration: it has scalars, a
+1 -1
View File
@@ -1,3 +1,3 @@
module sourcedock.dev/petrbalvin/interpres
module sourcedock.dev/petrbalvin/interpres/v2
go 1.27.1