Goconfigparser
Golang implementation of Python ConfigParser
Install / Use
/learn @mvo5/GoconfigparserREADME
Config File Parser (INI style)
This parser is build as a go equivalent of the Python ConfigParser module and is aimed for maximum compatibility for both the file format and the API. This should make it easy to use existing python style configuration files from go and also ease the porting of existing python code.
Example usage:
package main
import (
"fmt"
"github.com/mvo5/goconfigparser"
)
var cfgExample = `[service]
base: something
`
var cfgExample2 = `[service]
base=something
`
func main() {
cfg := goconfigparser.New()
cfg.ReadString(cfgExample)
val, err := cfg.Get("service", "base")
if err != nil {
panic(err)
}
fmt.Printf("Got value %q\n", val)
}
It implements most of RawConfigParser (i.e. no interpolation) at this point.
Current Limitations:
- no interpolation
- no defaults
- no write support
- not all API is provided
Related Skills
node-connect
353.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
353.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
353.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
