aboutsummaryrefslogtreecommitdiff
path: root/lib/ini/common.go
AgeCommit message (Collapse)Author
2026-01-15all: convert license and copyright to use SPDX identifiersShulhan
With help of spdxconv tool [1], we able to bulk update all files license and copyright format to comply with SPDX formats. [1] https://kilabit.info/project/spdxconv/
2022-07-25lib/ini: export the function to parse tagShulhan
2022-07-23lib/ini: support escaped double-quote and colon in tag subsectionShulhan
A colon `:` is escaped using double backslash `\\`, for example `a:b\\:c:d` contains section `a`, subsection `b:c`, and variable `d`. A double quote `"` is escaped using triple backslash, for example `\\\"`.
2022-05-09all: reformat all codes using gofmt 1.19 (the Go tip)Shulhan
2021-10-23lib/ini: check for empty string on IsValidVarNameShulhan
2021-10-23lib/ini: add function IsValidVarNameShulhan
The IsValidVarName check if "v" is valid variable name, where the first character must be a letter and the rest should contains only letter, digit, period, hyphen, or underscore. If "v" is valid it will return true.
2019-10-16ini: fix return value for empty string in IsValueBoolTrueShulhan
If the string value is empty it should return false not true.
2018-09-26lib/ini: move IsValueBoolTrue as common functionShulhan