go-toml
go-toml copied to clipboard
Go library for the TOML file format
**Describe the issue** The current error types returned are almost enough context to create a pretty-error wrapper, but not quite everything needed. For example, `StrictMissingError` returns enough context to generate...
Explanation of what this pull request does. More detailed description of the decisions being made and the reasons why (if the patch is non-trivial). --- Paste `benchstat` results here
Explanation of what this pull request does. ``` /go/pkg/mod/github.com/pelletier/go-toml/[email protected]/marshaler.go:735:40: undefined: reflect.Pointer ``` If we want to reflect.Pointer backward compatibility. here should use reflect.Ptr. related issue: https://github.com/pelletier/go-toml/issues/812 --- Benchmarks not needed
**Describe the bug** Marshalling netip.Addr with omitempty struct tag always returns empty, because the type doesn't have any exported fields. **To Reproduce** Minimal example: ```go func TestMarshal(t *testing.T) { tmp...
Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 3 to 6. Release notes Sourced from goreleaser/goreleaser-action's releases. v6.0.0 [!WARNING] This is a breaking change! Follow the instructions here to upgrade! What's Changed feat!: use "~>...
The [following example](https://go.dev/play/p/12wds5vltEh) ```go type a struct{ B b } type b struct{ C c } type c struct{ D d } type d struct{ S string } func main()...
**Describe the bug** A experienced empty bytes on a custom `UnmarshalText` type. **To Reproduce** ```go package main import ( "fmt" "github.com/pelletier/go-toml/v2" ) type C struct{} func (c *C) UnmarshalText(bytes []byte)...
github.com/pelletier/go-toml/[email protected]/marshaler.go:11:2: package slices is not in GOROOT (/usr/local/go/src/slices) note: imported by a module that requires go 1.21 
Explanation of what this pull request does. support parse string as time.Duration --- Paste `benchstat` results here