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

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

  •  
  •   darasion · Mar 28, 2016 · 3030 views
    This topic created in 3765 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
        1
    miyuki  
       Mar 28, 2016 via Android
    phoneli
        2
    phoneli  
       Mar 28, 2016
    配置文件解析?如果是简单类似 nginx 那种配置文件解析的,自己写一个,也很简单。
    FeiMa
        3
    FeiMa  
       Mar 28, 2016
    我是直接使用的 Json 配置文件就是手写 Json 字符串。
    cobopanda
        4
    cobopanda  
       Mar 28, 2016
    toml
    orvice
        5
    orvice  
       Mar 28, 2016
    gamexg
        6
    gamexg  
       Mar 28, 2016
    github.com/BurntSushi/toml

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

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