add buildin functions xml/ini/yaml/toml for package gview

This commit is contained in:
John Guo
2022-01-17 15:55:45 +08:00
parent d4b502f14e
commit c72a9f2e1e
8 changed files with 144 additions and 13 deletions

View File

@ -172,7 +172,7 @@ func (j *Json) MustToTomlString() string {
func (j *Json) ToIni() ([]byte, error) {
j.mu.RLock()
defer j.mu.RUnlock()
return gini.Encode((*(j.p)).(map[string]interface{}))
return gini.Encode(j.Map())
}
// ToIniString ini to string