aboutsummaryrefslogtreecommitdiff
path: root/lib/ini
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-09-10 22:04:06 +0700
committerShulhan <ms@kilabit.info>2023-09-11 02:16:52 +0700
commitd8f62756ec31ded0ebd25ffcdcbcf951adc94310 (patch)
treecda43ef3e7a16991f17fb10376fd8ca3f447e92b /lib/ini
parent66cd432532169a8fec078f7343ab8e1918cf3353 (diff)
downloadpakakeh.go-d8f62756ec31ded0ebd25ffcdcbcf951adc94310.tar.xz
lib/ini: remove tag on un-exported struct fields
Diffstat (limited to 'lib/ini')
-rw-r--r--lib/ini/ini_example_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ini/ini_example_test.go b/lib/ini/ini_example_test.go
index bfee1b31..328c6f60 100644
--- a/lib/ini/ini_example_test.go
+++ b/lib/ini/ini_example_test.go
@@ -293,7 +293,7 @@ func ExampleMarshal_map() {
MapPtrStruct map[string]*U `ini:"mapPtrStruct"`
// This field should not marshaled.
- unMapStruct map[string]U `ini:"unmapstruct"`
+ unMapStruct map[string]U
}
var (
@@ -410,7 +410,7 @@ func ExampleMarshal_struct() {
PtrStruct *U `ini:"pointer:struct"`
SliceStruct []U `ini:"slice:OfStruct"`
Struct U `ini:"section:struct"`
- unexported U `ini:"unexported"` // This field should not be marshaled.
+ unexported U // This field should not be marshaled.
}
var (
t = ADT{
@@ -644,7 +644,7 @@ func ExampleUnmarshal_struct() {
PtrStruct *U `ini:"pointer:struct"`
SliceStruct []U `ini:"slice:OfStruct"`
Struct U `ini:"section:struct"`
- unexported U `ini:"unexported"`
+ unexported U // This field should not be unmarshaled.
}
var (