The Go Programming Language
› http://golang.org/
› Go Playground
Go Projects
› Revel Web Framework
darasion

配置文件解析库,哪个最好用?

  •  
  •   darasion · Mar 28, 2016 · 3353 views
    This topic created in 3877 days ago, the information mentioned may be changed or developed.
    Supplement 1  ·  Mar 29, 2016
    大家觉得 gcfg 如何?
    https://gopkg.in/gcfg.v1
    11 replies  •  2016-12-20 06:54:14 +08:00
    miyuki
    miyuki
    Mar 28, 2016 via Android
    1
    phoneli
    phoneli
    Mar 28, 2016
    2
    配置文件解析?如果是简单类似 nginx 那种配置文件解析的,自己写一个,也很简单。
    FeiMa
    FeiMa
    Mar 28, 2016
    3
    我是直接使用的 Json 配置文件就是手写 Json 字符串。
    cobopanda
    cobopanda
    Mar 28, 2016
    4
    toml
    orvice
    orvice
    Mar 28, 2016
    5
    gamexg
    gamexg
    Mar 28, 2016
    6
    github.com/BurntSushi/toml

    不喜欢 json , json 不能添加注释。
    janxin
    janxin
    Mar 28, 2016
    7
    yibin001
    yibin001
    Mar 28, 2016
    8
    owt5008137
    owt5008137
    Mar 29, 2016 via Android
    9
    https://github.com/owt5008137/libiniloader

    自己写,带扩展语法的 ini 解析
    KiriGiri
    KiriGiri
    Mar 29, 2016 via Android
    10
    上一个重型武器。
    https://github.com/robertkrimen/otto
    纯 go 实现的 js 引擎,可以很好嵌入 go 程序。拿 js 写配置文件。
    xiqingongzi
    xiqingongzi
    Dec 20, 2016 via Android
    11
    github.com/go-ozzo/ozzo-config
    自己做项目时用的这个还不错。可以参考下。 go 新手:)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3117 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 53ms · UTC 01:08 · PVG 09:08 · LAX 17:08 · JFK 20:08
    ♥ Do have faith in what you're doing.