From a3d46d52a8b28a40ab6da7ea209dad85353e3dd5 Mon Sep 17 00:00:00 2001 From: ostiwe Date: Tue, 14 Apr 2026 12:40:39 +0300 Subject: [PATCH] update module --- .github/PULL_REQUEST_TEMPLATE.md | 2 +- CONTRIBUTING.md | 12 ++--- README.md | 44 +++++++++---------- benchmark/bench_datasets_test.go | 4 +- benchmark/benchmark_test.go | 4 +- ci.sh | 10 ++--- cmd/gotoml-test-decoder/main.go | 2 +- cmd/gotoml-test-encoder/main.go | 2 +- cmd/jsontoml/main.go | 6 +-- cmd/jsontoml/main_test.go | 2 +- cmd/tomljson/main.go | 6 +-- cmd/tomljson/main_test.go | 2 +- cmd/tomll/main.go | 6 +-- cmd/tomll/main_test.go | 2 +- cmd/tomltestgen/main.go | 2 +- decode.go | 4 +- errors.go | 2 +- errors_test.go | 4 +- example_text_marshaling_test.go | 2 +- fast_test.go | 4 +- fuzz_test.go | 4 +- go.mod | 2 +- internal/cli/cli.go | 2 +- internal/cli/cli_test.go | 4 +- .../imported_tests/marshal_imported_test.go | 4 +- .../imported_tests/unmarshal_imported_test.go | 4 +- internal/testsuite/add.go | 2 +- internal/testsuite/rm.go | 2 +- internal/testsuite/testsuite.go | 2 +- internal/tracker/key.go | 2 +- internal/tracker/seen.go | 2 +- internal/tracker/seen_test.go | 2 +- localtime.go | 2 +- localtime_test.go | 4 +- marshaler.go | 2 +- marshaler_test.go | 6 +-- ossfuzz/fuzz.go | 2 +- strict.go | 4 +- toml_testgen_support_test.go | 6 +-- unmarshaler.go | 4 +- unmarshaler_test.go | 6 +-- unstable/parser.go | 2 +- unstable/parser_test.go | 2 +- unstable/scanner.go | 2 +- 44 files changed, 98 insertions(+), 98 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 1e54e07..2285ab3 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -5,7 +5,7 @@ Thank you for your pull request! Please read the Code changes section of the CONTRIBUTING.md file, and make sure you have followed the instructions. -https://github.com/pelletier/go-toml/blob/v2/CONTRIBUTING.md#code-changes +https://git.ostiwe.com/ostiwe/go-toml/blob/v2/CONTRIBUTING.md#code-changes --> diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 28b88ec..d87f5d2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -21,7 +21,7 @@ improvement, or new features that weren't envisioned before. Sometimes, a seemingly innocent question leads to the fix of a bug. Don't hesitate and ask away! -[discussions]: https://github.com/pelletier/go-toml/discussions +[discussions]: https://git.ostiwe.com/ostiwe/go-toml/discussions ## Improve the documentation @@ -224,12 +224,12 @@ Checklist: 5. If new version is an alpha or beta only, check pre-release box. -[issues-tracker]: https://github.com/pelletier/go-toml/issues -[bug-report]: https://github.com/pelletier/go-toml/issues/new?template=bug_report.md -[pkg.go.dev]: https://pkg.go.dev/github.com/pelletier/go-toml +[issues-tracker]: https://git.ostiwe.com/ostiwe/go-toml/issues +[bug-report]: https://git.ostiwe.com/ostiwe/go-toml/issues/new?template=bug_report.md +[pkg.go.dev]: https://pkg.go.dev/git.ostiwe.com/ostiwe/go-toml [readme]: ./README.md [fork]: https://help.github.com/articles/fork-a-repo [pull-request]: https://help.github.com/en/articles/creating-a-pull-request -[new-release]: https://github.com/pelletier/go-toml/releases/new +[new-release]: https://git.ostiwe.com/ostiwe/go-toml/releases/new [gh]: https://github.com/cli/cli -[pr-labels]: https://github.com/pelletier/go-toml/blob/v2/.github/release.yml +[pr-labels]: https://git.ostiwe.com/ostiwe/go-toml/blob/v2/.github/release.yml diff --git a/README.md b/README.md index 61cdd18..06cc93e 100644 --- a/README.md +++ b/README.md @@ -4,21 +4,21 @@ Go library for the [TOML](https://toml.io/en/) format. This library supports [TOML v1.0.0](https://toml.io/en/v1.0.0). -[🐞 Bug Reports](https://github.com/pelletier/go-toml/issues) +[🐞 Bug Reports](https://git.ostiwe.com/ostiwe/go-toml/issues) -[💬 Anything else](https://github.com/pelletier/go-toml/discussions) +[💬 Anything else](https://git.ostiwe.com/ostiwe/go-toml/discussions) ## Documentation Full API, examples, and implementation notes are available in the Go documentation. -[![Go Reference](https://pkg.go.dev/badge/github.com/pelletier/go-toml/v2.svg)](https://pkg.go.dev/github.com/pelletier/go-toml/v2) +[![Go Reference](https://pkg.go.dev/badge/git.ostiwe.com/ostiwe/go-toml/v2.svg)](https://pkg.go.dev/git.ostiwe.com/ostiwe/go-toml/v2) ## Import ```go -import "github.com/pelletier/go-toml/v2" +import "git.ostiwe.com/ostiwe/go-toml/v2" ``` See [Modules](#Modules). @@ -41,7 +41,7 @@ operations should not be shockingly slow. See [benchmarks](#benchmarks). the TOML document was not present in the target structure. This is a great way to check for typos. [See example in the documentation][strict]. -[strict]: https://pkg.go.dev/github.com/pelletier/go-toml/v2#example-Decoder.DisallowUnknownFields +[strict]: https://pkg.go.dev/git.ostiwe.com/ostiwe/go-toml/v2#example-Decoder.DisallowUnknownFields ### Contextualized errors @@ -56,7 +56,7 @@ example: 3| port = 50 ``` -[decode-err]: https://pkg.go.dev/github.com/pelletier/go-toml/v2#DecodeError +[decode-err]: https://pkg.go.dev/git.ostiwe.com/ostiwe/go-toml/v2#DecodeError ### Local date and time support @@ -68,9 +68,9 @@ making them convenient yet unambiguous structures for their respective TOML representation. [ldt]: https://toml.io/en/v1.0.0#local-date-time -[tld]: https://pkg.go.dev/github.com/pelletier/go-toml/v2#LocalDate -[tlt]: https://pkg.go.dev/github.com/pelletier/go-toml/v2#LocalTime -[tldt]: https://pkg.go.dev/github.com/pelletier/go-toml/v2#LocalDateTime +[tld]: https://pkg.go.dev/git.ostiwe.com/ostiwe/go-toml/v2#LocalDate +[tlt]: https://pkg.go.dev/git.ostiwe.com/ostiwe/go-toml/v2#LocalTime +[tldt]: https://pkg.go.dev/git.ostiwe.com/ostiwe/go-toml/v2#LocalDateTime ### Commented config @@ -90,7 +90,7 @@ port = 4242 # version = 'TLS 1.3' ``` -[comments-example]: https://pkg.go.dev/github.com/pelletier/go-toml/v2#example-Marshal-Commented +[comments-example]: https://pkg.go.dev/git.ostiwe.com/ostiwe/go-toml/v2#example-Marshal-Commented ## Getting started @@ -135,7 +135,7 @@ fmt.Println("tags:", cfg.Tags) // tags: [go toml] ``` -[unmarshal]: https://pkg.go.dev/github.com/pelletier/go-toml/v2#Unmarshal +[unmarshal]: https://pkg.go.dev/git.ostiwe.com/ostiwe/go-toml/v2#Unmarshal Here is an example using tables with some simple nesting: @@ -217,7 +217,7 @@ fmt.Println(string(b)) // Tags = ['go', 'toml'] ``` -[marshal]: https://pkg.go.dev/github.com/pelletier/go-toml/v2#Marshal +[marshal]: https://pkg.go.dev/git.ostiwe.com/ostiwe/go-toml/v2#Marshal ## Unstable API @@ -228,7 +228,7 @@ API subject to change. ### Parser Parser is the unstable API that allows iterative parsing of a TOML document at -the AST level. See https://pkg.go.dev/github.com/pelletier/go-toml/v2/unstable. +the AST level. See https://pkg.go.dev/git.ostiwe.com/ostiwe/go-toml/v2/unstable. ## Benchmarks @@ -281,7 +281,7 @@ Installation instructions: - Go ≥ 1.16: Nothing to do. Use the import in your code. The `go` command deals with it automatically. -- Go ≥ 1.13: `GO111MODULE=on go get github.com/pelletier/go-toml/v2`. +- Go ≥ 1.13: `GO111MODULE=on go get git.ostiwe.com/ostiwe/go-toml/v2`. In case of trouble: [Go Modules FAQ][mod-faq]. @@ -294,21 +294,21 @@ Go-toml provides three handy command line tools: * `tomljson`: Reads a TOML file and outputs its JSON representation. ``` - $ go install github.com/pelletier/go-toml/v2/cmd/tomljson@latest + $ go install git.ostiwe.com/ostiwe/go-toml/v2/cmd/tomljson@latest $ tomljson --help ``` * `jsontoml`: Reads a JSON file and outputs a TOML representation. ``` - $ go install github.com/pelletier/go-toml/v2/cmd/jsontoml@latest + $ go install git.ostiwe.com/ostiwe/go-toml/v2/cmd/jsontoml@latest $ jsontoml --help ``` * `tomll`: Lints and reformats a TOML file. ``` - $ go install github.com/pelletier/go-toml/v2/cmd/tomll@latest + $ go install git.ostiwe.com/ostiwe/go-toml/v2/cmd/tomll@latest $ tomll --help ``` @@ -323,7 +323,7 @@ docker run -i ghcr.io/pelletier/go-toml:v2 tomljson < example.toml Multiple versions are available on [ghcr.io][docker]. -[docker]: https://github.com/pelletier/go-toml/pkgs/container/go-toml +[docker]: https://git.ostiwe.com/ostiwe/go-toml/pkgs/container/go-toml ## Migrating from v1 @@ -344,7 +344,7 @@ This could impact you if you are relying on casing to differentiate two fields, and one of them is a not using the `toml` struct tag. The recommended solution is to be specific about tag names for those fields using the `toml` struct tag. -[v1-keys]: https://github.com/pelletier/go-toml/blob/a2e52561804c6cd9392ebf0048ca64fe4af67a43/marshal.go#L775-L781 +[v1-keys]: https://git.ostiwe.com/ostiwe/go-toml/blob/a2e52561804c6cd9392ebf0048ca64fe4af67a43/marshal.go#L775-L781 #### Ignore preexisting value in interface @@ -544,7 +544,7 @@ fmt.Println("v2 Encoder:\n" + string(buf.Bytes())) // key = 'value' ``` -[sit]: https://pkg.go.dev/github.com/pelletier/go-toml/v2#Encoder.SetIndentTables +[sit]: https://pkg.go.dev/git.ostiwe.com/ostiwe/go-toml/v2#Encoder.SetIndentTables #### Keys and strings are single quoted @@ -608,7 +608,7 @@ added to make the encoder behave correctly. Given backward compatibility is not a problem anymore, v2 does the right thing by default: it follows the behavior of `encoding/json`. `Encoder.PromoteAnonymous` has been removed. -[nodoc]: https://github.com/pelletier/go-toml/discussions/506#discussioncomment-1526038 +[nodoc]: https://git.ostiwe.com/ostiwe/go-toml/discussions/506#discussioncomment-1526038 ### `query` @@ -620,7 +620,7 @@ This package has been removed because it was essentially not supported anymore (last commit May 2020), increased the complexity of the code base, and more complete solutions exist out there. -[query]: https://github.com/pelletier/go-toml/tree/f99d6bbca119636aeafcf351ee52b3d202782627/query +[query]: https://git.ostiwe.com/ostiwe/go-toml/tree/f99d6bbca119636aeafcf351ee52b3d202782627/query [dasel]: https://github.com/TomWright/dasel ## Versioning diff --git a/benchmark/bench_datasets_test.go b/benchmark/bench_datasets_test.go index 91869df..a5f4604 100644 --- a/benchmark/bench_datasets_test.go +++ b/benchmark/bench_datasets_test.go @@ -8,8 +8,8 @@ import ( "path/filepath" "testing" - "github.com/pelletier/go-toml/v2" - "github.com/pelletier/go-toml/v2/internal/assert" + "git.ostiwe.com/ostiwe/go-toml/v2" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/assert" ) var benchInputs = []struct { diff --git a/benchmark/benchmark_test.go b/benchmark/benchmark_test.go index 7d9b136..7661d36 100644 --- a/benchmark/benchmark_test.go +++ b/benchmark/benchmark_test.go @@ -6,8 +6,8 @@ import ( "testing" "time" - "github.com/pelletier/go-toml/v2" - "github.com/pelletier/go-toml/v2/internal/assert" + "git.ostiwe.com/ostiwe/go-toml/v2" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/assert" ) func TestUnmarshalSimple(t *testing.T) { diff --git a/ci.sh b/ci.sh index 30c23d1..3589fc0 100755 --- a/ci.sh +++ b/ci.sh @@ -117,8 +117,8 @@ coverage() { target_diff="${output_dir}/target.diff.txt" head_diff="${output_dir}/head.diff.txt" - cat "${target_out}" | grep -E '^github.com/pelletier/go-toml' | tr -s "\t " | cut -f 2,3 | sort > "${target_diff}" - cat "${head_out}" | grep -E '^github.com/pelletier/go-toml' | tr -s "\t " | cut -f 2,3 | sort > "${head_diff}" + cat "${target_out}" | grep -E '^git.ostiwe.com/ostiwe/go-toml' | tr -s "\t " | cut -f 2,3 | sort > "${target_diff}" + cat "${head_out}" | grep -E '^git.ostiwe.com/ostiwe/go-toml' | tr -s "\t " | cut -f 2,3 | sort > "${head_diff}" diff --side-by-side --suppress-common-lines "${target_diff}" "${head_diff}" return 1 @@ -147,7 +147,7 @@ bench() { pushd "$dir" if [ "${replace}" != "" ]; then - find ./benchmark/ -iname '*.go' -exec sed -i -E "s|github.com/pelletier/go-toml/v2\"|${replace}\"|g" {} \; + find ./benchmark/ -iname '*.go' -exec sed -i -E "s|git.ostiwe.com/ostiwe/go-toml/v2\"|${replace}\"|g" {} \; go get "${replace}" fi @@ -257,9 +257,9 @@ benchmark() { shift v2stats=`fmktemp go-toml-v2` - bench HEAD "${v2stats}" "github.com/pelletier/go-toml/v2" + bench HEAD "${v2stats}" "git.ostiwe.com/ostiwe/go-toml/v2" v1stats=`fmktemp go-toml-v1` - bench HEAD "${v1stats}" "github.com/pelletier/go-toml" + bench HEAD "${v1stats}" "git.ostiwe.com/ostiwe/go-toml" bsstats=`fmktemp bs-toml` bench HEAD "${bsstats}" "github.com/BurntSushi/toml" diff --git a/cmd/gotoml-test-decoder/main.go b/cmd/gotoml-test-decoder/main.go index e4865de..797d411 100644 --- a/cmd/gotoml-test-decoder/main.go +++ b/cmd/gotoml-test-decoder/main.go @@ -7,7 +7,7 @@ import ( "os" "path" - "github.com/pelletier/go-toml/v2/internal/testsuite" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/testsuite" ) func main() { diff --git a/cmd/gotoml-test-encoder/main.go b/cmd/gotoml-test-encoder/main.go index e33cc3e..b70948b 100644 --- a/cmd/gotoml-test-encoder/main.go +++ b/cmd/gotoml-test-encoder/main.go @@ -7,7 +7,7 @@ import ( "os" "path" - "github.com/pelletier/go-toml/v2/internal/testsuite" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/testsuite" ) func main() { diff --git a/cmd/jsontoml/main.go b/cmd/jsontoml/main.go index a0384ad..d10fe8e 100644 --- a/cmd/jsontoml/main.go +++ b/cmd/jsontoml/main.go @@ -14,7 +14,7 @@ // // Using Go: // -// go install github.com/pelletier/go-toml/v2/cmd/jsontoml@latest +// go install git.ostiwe.com/ostiwe/go-toml/v2/cmd/jsontoml@latest package main import ( @@ -22,8 +22,8 @@ import ( "flag" "io" - "github.com/pelletier/go-toml/v2" - "github.com/pelletier/go-toml/v2/internal/cli" + "git.ostiwe.com/ostiwe/go-toml/v2" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/cli" ) const usage = `jsontoml can be used in two ways: diff --git a/cmd/jsontoml/main_test.go b/cmd/jsontoml/main_test.go index 8b188a7..3915787 100644 --- a/cmd/jsontoml/main_test.go +++ b/cmd/jsontoml/main_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/pelletier/go-toml/v2/internal/assert" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/assert" ) func TestConvert(t *testing.T) { diff --git a/cmd/tomljson/main.go b/cmd/tomljson/main.go index 297b0a5..ff02529 100644 --- a/cmd/tomljson/main.go +++ b/cmd/tomljson/main.go @@ -14,7 +14,7 @@ // // Using Go: // -// go install github.com/pelletier/go-toml/v2/cmd/tomljson@latest +// go install git.ostiwe.com/ostiwe/go-toml/v2/cmd/tomljson@latest package main import ( @@ -23,8 +23,8 @@ import ( "fmt" "io" - "github.com/pelletier/go-toml/v2" - "github.com/pelletier/go-toml/v2/internal/cli" + "git.ostiwe.com/ostiwe/go-toml/v2" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/cli" ) const usage = `tomljson can be used in two ways: diff --git a/cmd/tomljson/main_test.go b/cmd/tomljson/main_test.go index 7fa7a77..129fa9f 100644 --- a/cmd/tomljson/main_test.go +++ b/cmd/tomljson/main_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - "github.com/pelletier/go-toml/v2/internal/assert" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/assert" ) func TestConvert(t *testing.T) { diff --git a/cmd/tomll/main.go b/cmd/tomll/main.go index 2ae3a71..8759003 100644 --- a/cmd/tomll/main.go +++ b/cmd/tomll/main.go @@ -14,14 +14,14 @@ // // Using Go: // -// go install github.com/pelletier/go-toml/v2/cmd/tomll@latest +// go install git.ostiwe.com/ostiwe/go-toml/v2/cmd/tomll@latest package main import ( "io" - "github.com/pelletier/go-toml/v2" - "github.com/pelletier/go-toml/v2/internal/cli" + "git.ostiwe.com/ostiwe/go-toml/v2" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/cli" ) const usage = `tomll can be used in two ways: diff --git a/cmd/tomll/main_test.go b/cmd/tomll/main_test.go index b709369..2f93b5c 100644 --- a/cmd/tomll/main_test.go +++ b/cmd/tomll/main_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/pelletier/go-toml/v2/internal/assert" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/assert" ) func TestConvert(t *testing.T) { diff --git a/cmd/tomltestgen/main.go b/cmd/tomltestgen/main.go index c9102a0..6f4f72d 100644 --- a/cmd/tomltestgen/main.go +++ b/cmd/tomltestgen/main.go @@ -3,7 +3,7 @@ // // Within the go-toml package, run `go generate`. Otherwise, use: // -// go run github.com/pelletier/go-toml/cmd/tomltestgen -o toml_testgen_test.go +// go run git.ostiwe.com/ostiwe/go-toml/cmd/tomltestgen -o toml_testgen_test.go package main import ( diff --git a/decode.go b/decode.go index f3f14ef..c0422a1 100644 --- a/decode.go +++ b/decode.go @@ -6,7 +6,7 @@ import ( "strconv" "time" - "github.com/pelletier/go-toml/v2/unstable" + "git.ostiwe.com/ostiwe/go-toml/v2/unstable" ) func parseInteger(b []byte) (int64, error) { @@ -258,7 +258,7 @@ func parseLocalTime(b []byte) (LocalTime, []byte, error) { // to the supported precision and ignores the // remaining digits. // - // https://github.com/pelletier/go-toml/discussions/707 + // https://git.ostiwe.com/ostiwe/go-toml/discussions/707 continue } diff --git a/errors.go b/errors.go index d68835d..0855db2 100644 --- a/errors.go +++ b/errors.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - "github.com/pelletier/go-toml/v2/unstable" + "git.ostiwe.com/ostiwe/go-toml/v2/unstable" ) // DecodeError represents an error encountered during the parsing or decoding diff --git a/errors_test.go b/errors_test.go index 3703bd0..1edce20 100644 --- a/errors_test.go +++ b/errors_test.go @@ -7,8 +7,8 @@ import ( "strings" "testing" - "github.com/pelletier/go-toml/v2/internal/assert" - "github.com/pelletier/go-toml/v2/unstable" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/assert" + "git.ostiwe.com/ostiwe/go-toml/v2/unstable" ) //nolint:funlen diff --git a/example_text_marshaling_test.go b/example_text_marshaling_test.go index 4d4f3cc..d653f6c 100644 --- a/example_text_marshaling_test.go +++ b/example_text_marshaling_test.go @@ -5,7 +5,7 @@ import ( "log" "strconv" - "github.com/pelletier/go-toml/v2" + "git.ostiwe.com/ostiwe/go-toml/v2" ) type customInt int diff --git a/fast_test.go b/fast_test.go index f7083b7..db5a71c 100644 --- a/fast_test.go +++ b/fast_test.go @@ -3,8 +3,8 @@ package toml_test import ( "testing" - "github.com/pelletier/go-toml/v2" - "github.com/pelletier/go-toml/v2/internal/assert" + "git.ostiwe.com/ostiwe/go-toml/v2" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/assert" ) func TestFastSimpleInt(t *testing.T) { diff --git a/fuzz_test.go b/fuzz_test.go index a28b720..62f2814 100644 --- a/fuzz_test.go +++ b/fuzz_test.go @@ -5,8 +5,8 @@ import ( "strings" "testing" - "github.com/pelletier/go-toml/v2" - "github.com/pelletier/go-toml/v2/internal/assert" + "git.ostiwe.com/ostiwe/go-toml/v2" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/assert" ) func FuzzUnmarshal(f *testing.F) { diff --git a/go.mod b/go.mod index c4c27ae..eb79523 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/pelletier/go-toml/v2 +module git.ostiwe.com/ostiwe/go-toml/v2 go 1.21.0 diff --git a/internal/cli/cli.go b/internal/cli/cli.go index a1a168d..5644570 100644 --- a/internal/cli/cli.go +++ b/internal/cli/cli.go @@ -9,7 +9,7 @@ import ( "io" "os" - "github.com/pelletier/go-toml/v2" + "git.ostiwe.com/ostiwe/go-toml/v2" ) type ConvertFn func(r io.Reader, w io.Writer) error diff --git a/internal/cli/cli_test.go b/internal/cli/cli_test.go index 619cb0c..f13a455 100644 --- a/internal/cli/cli_test.go +++ b/internal/cli/cli_test.go @@ -9,8 +9,8 @@ import ( "strings" "testing" - "github.com/pelletier/go-toml/v2" - "github.com/pelletier/go-toml/v2/internal/assert" + "git.ostiwe.com/ostiwe/go-toml/v2" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/assert" ) func processMain(args []string, input io.Reader, stdout, stderr io.Writer, f ConvertFn) int { diff --git a/internal/imported_tests/marshal_imported_test.go b/internal/imported_tests/marshal_imported_test.go index 6c35a4f..bdf244c 100644 --- a/internal/imported_tests/marshal_imported_test.go +++ b/internal/imported_tests/marshal_imported_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - "github.com/pelletier/go-toml/v2" - "github.com/pelletier/go-toml/v2/internal/assert" + "git.ostiwe.com/ostiwe/go-toml/v2" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/assert" ) func TestDocMarshal(t *testing.T) { diff --git a/internal/imported_tests/unmarshal_imported_test.go b/internal/imported_tests/unmarshal_imported_test.go index ebead59..47f48e3 100644 --- a/internal/imported_tests/unmarshal_imported_test.go +++ b/internal/imported_tests/unmarshal_imported_test.go @@ -15,8 +15,8 @@ import ( "testing" "time" - "github.com/pelletier/go-toml/v2" - "github.com/pelletier/go-toml/v2/internal/assert" + "git.ostiwe.com/ostiwe/go-toml/v2" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/assert" ) type basicMarshalTestStruct struct { diff --git a/internal/testsuite/add.go b/internal/testsuite/add.go index ee23b3c..1340dd7 100644 --- a/internal/testsuite/add.go +++ b/internal/testsuite/add.go @@ -6,7 +6,7 @@ import ( "strconv" "time" - "github.com/pelletier/go-toml/v2" + "git.ostiwe.com/ostiwe/go-toml/v2" ) // addTag adds JSON tags to a data structure as expected by toml-test. diff --git a/internal/testsuite/rm.go b/internal/testsuite/rm.go index 0e3ee8f..379e537 100644 --- a/internal/testsuite/rm.go +++ b/internal/testsuite/rm.go @@ -5,7 +5,7 @@ import ( "strconv" "time" - "github.com/pelletier/go-toml/v2" + "git.ostiwe.com/ostiwe/go-toml/v2" ) // Remove JSON tags to a data structure as returned by toml-test. diff --git a/internal/testsuite/testsuite.go b/internal/testsuite/testsuite.go index 812e686..00f36a1 100644 --- a/internal/testsuite/testsuite.go +++ b/internal/testsuite/testsuite.go @@ -7,7 +7,7 @@ import ( "fmt" "os" - "github.com/pelletier/go-toml/v2" + "git.ostiwe.com/ostiwe/go-toml/v2" ) // Marshal is a helper function for calling toml.Marshal diff --git a/internal/tracker/key.go b/internal/tracker/key.go index 6344fd0..0271ece 100644 --- a/internal/tracker/key.go +++ b/internal/tracker/key.go @@ -1,6 +1,6 @@ package tracker -import "github.com/pelletier/go-toml/v2/unstable" +import "git.ostiwe.com/ostiwe/go-toml/v2/unstable" // KeyTracker is a tracker that keeps track of the current Key as the AST is // walked. diff --git a/internal/tracker/seen.go b/internal/tracker/seen.go index 2062358..1c8fab1 100644 --- a/internal/tracker/seen.go +++ b/internal/tracker/seen.go @@ -5,7 +5,7 @@ import ( "fmt" "sync" - "github.com/pelletier/go-toml/v2/unstable" + "git.ostiwe.com/ostiwe/go-toml/v2/unstable" ) type keyKind uint8 diff --git a/internal/tracker/seen_test.go b/internal/tracker/seen_test.go index 4543f4d..5c648d5 100644 --- a/internal/tracker/seen_test.go +++ b/internal/tracker/seen_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - "github.com/pelletier/go-toml/v2/internal/assert" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/assert" ) func TestEntrySize(t *testing.T) { diff --git a/localtime.go b/localtime.go index 502ef2f..0dd06ac 100644 --- a/localtime.go +++ b/localtime.go @@ -5,7 +5,7 @@ import ( "strings" "time" - "github.com/pelletier/go-toml/v2/unstable" + "git.ostiwe.com/ostiwe/go-toml/v2/unstable" ) // LocalDate represents a calendar day in no specific timezone. diff --git a/localtime_test.go b/localtime_test.go index 7377038..11a4c7c 100644 --- a/localtime_test.go +++ b/localtime_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "github.com/pelletier/go-toml/v2" - "github.com/pelletier/go-toml/v2/internal/assert" + "git.ostiwe.com/ostiwe/go-toml/v2" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/assert" ) func TestLocalDate_AsTime(t *testing.T) { diff --git a/marshaler.go b/marshaler.go index cf3dafe..94798de 100644 --- a/marshaler.go +++ b/marshaler.go @@ -15,7 +15,7 @@ import ( "time" "unicode" - "github.com/pelletier/go-toml/v2/internal/characters" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/characters" ) // Marshal serializes a Go value as a TOML document. diff --git a/marshaler_test.go b/marshaler_test.go index 5617e74..26dc341 100644 --- a/marshaler_test.go +++ b/marshaler_test.go @@ -13,8 +13,8 @@ import ( "testing" "time" - "github.com/pelletier/go-toml/v2" - "github.com/pelletier/go-toml/v2/internal/assert" + "git.ostiwe.com/ostiwe/go-toml/v2" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/assert" ) type marshalTextKey struct { @@ -2220,7 +2220,7 @@ port = 4242 // TestMarshalIssue975 tests that nil pointer values in maps are marshaled as // empty tables, allowing round-trip marshaling to work correctly. -// See https://github.com/pelletier/go-toml/issues/975 +// See https://git.ostiwe.com/ostiwe/go-toml/issues/975 func TestMarshalIssue975(t *testing.T) { // Test case from the issue: map[string]*struct{} oldMap := map[string]*struct{}{ diff --git a/ossfuzz/fuzz.go b/ossfuzz/fuzz.go index db2d4e2..9a50881 100644 --- a/ossfuzz/fuzz.go +++ b/ossfuzz/fuzz.go @@ -6,7 +6,7 @@ import ( "reflect" "strings" - "github.com/pelletier/go-toml/v2" + "git.ostiwe.com/ostiwe/go-toml/v2" ) // FuzzToml is the fuzzing target. diff --git a/strict.go b/strict.go index 2a147c0..cd36fea 100644 --- a/strict.go +++ b/strict.go @@ -1,8 +1,8 @@ package toml import ( - "github.com/pelletier/go-toml/v2/internal/tracker" - "github.com/pelletier/go-toml/v2/unstable" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/tracker" + "git.ostiwe.com/ostiwe/go-toml/v2/unstable" ) type strict struct { diff --git a/toml_testgen_support_test.go b/toml_testgen_support_test.go index 868fb7d..b42f53f 100644 --- a/toml_testgen_support_test.go +++ b/toml_testgen_support_test.go @@ -8,9 +8,9 @@ import ( "errors" "testing" - "github.com/pelletier/go-toml/v2" - "github.com/pelletier/go-toml/v2/internal/assert" - "github.com/pelletier/go-toml/v2/internal/testsuite" + "git.ostiwe.com/ostiwe/go-toml/v2" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/assert" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/testsuite" ) func testgenInvalid(t *testing.T, input string) { diff --git a/unmarshaler.go b/unmarshaler.go index e7db812..5e358bb 100644 --- a/unmarshaler.go +++ b/unmarshaler.go @@ -12,8 +12,8 @@ import ( "sync/atomic" "time" - "github.com/pelletier/go-toml/v2/internal/tracker" - "github.com/pelletier/go-toml/v2/unstable" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/tracker" + "git.ostiwe.com/ostiwe/go-toml/v2/unstable" ) // Unmarshal deserializes a TOML document into a Go value. diff --git a/unmarshaler_test.go b/unmarshaler_test.go index 9987722..f47e152 100644 --- a/unmarshaler_test.go +++ b/unmarshaler_test.go @@ -11,9 +11,9 @@ import ( "testing" "time" - "github.com/pelletier/go-toml/v2" - "github.com/pelletier/go-toml/v2/internal/assert" - "github.com/pelletier/go-toml/v2/unstable" + "git.ostiwe.com/ostiwe/go-toml/v2" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/assert" + "git.ostiwe.com/ostiwe/go-toml/v2/unstable" ) type unmarshalTextKey struct { diff --git a/unstable/parser.go b/unstable/parser.go index e7c68dc..d8eaef5 100644 --- a/unstable/parser.go +++ b/unstable/parser.go @@ -5,7 +5,7 @@ import ( "fmt" "unicode" - "github.com/pelletier/go-toml/v2/internal/characters" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/characters" ) // ParserError describes an error relative to the content of the document. diff --git a/unstable/parser_test.go b/unstable/parser_test.go index 9726915..353becc 100644 --- a/unstable/parser_test.go +++ b/unstable/parser_test.go @@ -6,7 +6,7 @@ import ( "strings" "testing" - "github.com/pelletier/go-toml/v2/internal/assert" + "git.ostiwe.com/ostiwe/go-toml/v2/internal/assert" ) func TestParser_AST_Numbers(t *testing.T) { diff --git a/unstable/scanner.go b/unstable/scanner.go index 0512181..e32fbca 100644 --- a/unstable/scanner.go +++ b/unstable/scanner.go @@ -1,6 +1,6 @@ package unstable -import "github.com/pelletier/go-toml/v2/internal/characters" +import "git.ostiwe.com/ostiwe/go-toml/v2/internal/characters" func scanFollows(b []byte, pattern string) bool { n := len(pattern)