diff options
| author | Shulhan <ms@kilabit.info> | 2022-04-18 01:30:40 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-04-18 01:35:59 +0700 |
| commit | f06c0d023a1ddd7b2d384995d975fe303d198ca9 (patch) | |
| tree | 06d3a1d1a9878000012f033a1e1576eb759e6001 /lib/http/callback_error_handler.go | |
| parent | ceba0704c6fcc2c3dd82876f6c45a3b24fe98fd6 (diff) | |
| download | pakakeh.go-f06c0d023a1ddd7b2d384995d975fe303d198ca9.tar.xz | |
lib/ini: implement marshaling and unmarshaling map with struct element
For a field F with type map[K]S `ini:"sec"`, where K is string and S is
a struct or pointer to struct element, marshaling the field F will
result in the following ini format,
[sec "K"]
<S.Field.Tag> = <S.Field.Value>
Each field in struct S unmarshaled normally as "key = value".
This rule is also applied when unmarshalling from ini text into map[K]V.
This implementation allow multiple section with dynamic subsections as
key.
Diffstat (limited to 'lib/http/callback_error_handler.go')
0 files changed, 0 insertions, 0 deletions
