You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
using []string in a struct goes wrong if any of the strings contains a comma ',' #348
Fixed in v1.68.0 by PR 402. Set LoadOptions{EscapeSliceDelimiters: true} and ReflectFrom escapes \ and the delimiter in string slice elements, so MapTo reads them back unchanged. It is off by default in v1 because other readers don't unescape them. v2 (unknwon.dev/ini/v2) escapes by default.
Activity
struct: escape delimiter in string slices on ReflectFrom
unknwon commentedon Nov 11, 2026
Fixed in v1.68.0 by PR 402. Set
LoadOptions{EscapeSliceDelimiters: true}andReflectFromescapes\and the delimiter in string slice elements, soMapToreads them back unchanged. It is off by default in v1 because other readers don't unescape them. v2 (unknwon.dev/ini/v2) escapes by default.