Assisted-by: GLM 5.3 Flash
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -25,7 +25,7 @@ import (
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"sourcedock.dev/petrbalvin/interpres"
|
||||
"sourcedock.dev/petrbalvin/interpres/v2"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"sourcedock.dev/petrbalvin/interpres"
|
||||
"sourcedock.dev/petrbalvin/interpres/v2"
|
||||
)
|
||||
|
||||
func TestRunParsesValidTOML(t *testing.T) {
|
||||
|
||||
+2
-2
@@ -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
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user