go-json-path
Recently, I uses Go language to develop some applications and frameworks. Go has some standard libraries, but I found that standard configuration libraries are not provided.
I would like to use JSON format as my configuration file format, because Go supports JSON format in the standard library. However, I feel that the standard library is not useful to parse any JSON formats.
For that reason, I have developed a new open source package for Go, go-json-path. The go-json-path is a utility library to access JSON based configuration easily.
Go supports JSON format, but the decode is a bother to prepare the JSON structures [1][2]. Using the go-json-path, you can get configuration values in the specified JSON file or string by the given path like XPath. The example is bellow.
import (
"config/jpath"
)
config, err := jpath.NewConfig()
if err != nil {
t.Error(err)
}
err = config.ParseFromFile("/etc/profile.conf")
if err != nil {
t.Error(err)
}
name, err := config.GetKeyStringByPath("/organizer/name")
if err != nil {
t.Error(err)
}
age, err := config.GetKeyStringByPath("/organizer/age")
if err != nil {
t.Error(err)
}
The configuration file format is based on JSON as the following.
#
# /etc/profile.conf
#
{
"organizer": {
"name": "John Smith",
"age": 33
}
}
Repository
References
- [1] JSON and Go
- [2] encoding/json
Pingback: priligy 60 mg dosage
Pingback: hydroxychloroquine side effects human
Pingback: plaquenil hydroxychloroquine for lupus
Pingback: plaquenil hydroxychloroquine manufacturer
Pingback: ivermectine 6 mg
Pingback: warnings for priligy
Pingback: order stromectol
Pingback: get stromectol online
Pingback: stromectol 875 mg for scabicide
Pingback: stromectol and prednisone for ear infection
Pingback: buy viagra doha
Pingback: prednisone 600 mg
Pingback: buy levitra pakistan
Pingback: buy cialis online cheap
Pingback: cialis for sale in london
Pingback: stromectol no prescription
Pingback: cheap cialis india
Pingback: how to take ivermectin
Pingback: avl ivermectin pour on
Pingback: generic cialis
Pingback: over the counter viagra
Pingback: buy viagra cialis canada
Pingback: sildenafil over the counter uk
Pingback: cialis rx
Pingback: viagra sildenafil 50mg price
Pingback: top ten online casino games
Pingback: how do viagra pills look
Pingback: generic cialis from canada
Pingback: walgreens phone number
Pingback: benefits of viagra for men
Pingback: ivermectin 200
Pingback: ivermectin 3mg pill
Pingback: cost of cialis without prescription
Pingback: viagra generic drug
Pingback: ivermectin wikipedia
Pingback: purchase oral ivermectin
Pingback: buy ventolin germany
Pingback: kory
Pingback: covid care alliance
Pingback: flccc protocol
Pingback: dr pierre kory ivermectine
Pingback: ivermectin 5ml
Pingback: topical ivermectin cost
Pingback: ivermectin price canada
Pingback: ivermectin cost
Pingback: ivermectin 3mg tablet
Pingback: ivermectin 3 mg
Pingback: ivermectin ireland
Pingback: where to get ivermectin
Pingback: where can i buy ivermectin
Pingback: stromectol walgreens
Pingback: stromectol for sale
Pingback: ivermectin tablets for sale
Pingback: stromectol tablets
Pingback: ignition casino best slots
Pingback: madridbet
Pingback: meritking
Pingback: meritroyalbet
Pingback: ivermectin tablets for humans
Pingback: cialis online pharmacy
Pingback: oral prednisone
Pingback: tadalafil liquid
Pingback: buy tadalafil powder
Pingback: elexusbet
Pingback: meritroyalbet
Pingback: meritroyalbet
Pingback: provigil boots pharmacy
Pingback: ivermectin canada
Pingback: stromectol tablets for humans
Pingback: where to buy viagra in la
Pingback: where to buy ivermectin
Pingback: tadalafila
Pingback: cialis super active
Pingback: viagra generico
Pingback: lasix 10 mg
Pingback: furosemide 160 mg daily
Pingback: ivermectin use in india
Pingback: tadalafil peptides
Pingback: cialis pills for cheap
Pingback: how much is generic cialis
Pingback: brand cialis online usa
Pingback: sildenafil pills online purchase
Pingback: baymavi
Pingback: baymavi
Pingback: tadalafil india
Pingback: ivermectin oral solution
Pingback: how to buy sildenafil tablets
Pingback: sildenafil citrate for sale
Pingback: how can i get cheap cialis
Pingback: alternative to cialis
Pingback: buy cialis over the counter
Pingback: tombala siteleri
Pingback: side effects of prednisone 20mg
Pingback: apo prednisone 20mg
Pingback: corona pills
Pingback: 3succeed
Pingback: tadal
Pingback: generic cialis walgreens price
Pingback: tadalafil sandoz
Pingback: stromectol buy uk
Pingback: viagra and covid
Pingback: prednisone side effects in women
Pingback: what is cialis
Pingback: meritroyalbet
Pingback: best online casino usa
Pingback: eurocasino
Pingback: generic viagra name
Pingback: generic viagra online best price
Pingback: cost of cialis without prescription
Pingback: generic cialis
Pingback: borgata free casino
Pingback: ivermectin and covid
Pingback: how to get ivermectin australia
Pingback: free slots that pay cash
Pingback: cialis price canada
Pingback: cialis price
Pingback: can u get high on accutane
Pingback: sildenafil over the counter
Pingback: how can i get cheap cialis
Pingback: ivermectin for humans dosage
Pingback: new no deposit online casinos
Pingback: where to buy ivermectin cream
Pingback: ivermectin 20 mg
Pingback: ivermectin goodrx
Pingback: ivermectin cream
Pingback: ivermectin 0.08 oral solution
Pingback: can you buy ivermectin over the counter
Pingback: stromectol price us
Pingback: stromectol tablets buy
Pingback: ivermectin 6 mg dosage
Pingback: ivermectina
Pingback: ivermectin 2mg
Pingback: ivermectin cost canada
Pingback: purchase ivermectin online
Pingback: buy ivermectin 3mg for sale
Pingback: ivermectin humans
Pingback: buy 40mg lasix online
Pingback: furosemide 20 mg generic
Pingback: stromectol prescription
Pingback: sildenafil tablets uk
Pingback: can you get ivermectin over the counter
Pingback: flccc ivermectin
Pingback: purchase ivermectin
Pingback: stromectol ireland
Pingback: cialis goodrx
Pingback: madridbet giriş
Pingback: luckylandslots.com sign in
Pingback: ivermectin 0.08%
Pingback: online pharmacy
Pingback: how much does hydroxychloroquine cost
Pingback: most reliable canadian pharmacies
Pingback: telegra.phHow-Has-The-COVID-19-Pandemic-Changed-Our-Lives-Globally-02-24
Pingback: cost of ivermectin medicine
Pingback: gpefy8.wixsite.compharmacypostoptimal-frequency-setting-of-metro-services-within-the-age-of-covid-19-distancing-measures
Pingback: ivermectin in diabetic patients
Pingback: keuybc.estranky.skclanky30-facts-you-must-know--a-covid-cribsheet.html
Pingback: https://gwertvb.mystrikingly.com/
Pingback: canadadrugs
Pingback: order stromectol
Pingback: canadian pharmacycanadian pharmacy
Pingback: chubo3.wixsite.comcanadian-pharmacypostwhat-parents-must-find-out-about-kids-and-covid-19
Pingback: https://canadian-pharmacies0.yolasite.com/
Pingback: discount canadian pharmacies
Pingback: kevasw.webgarden.com
Pingback: free cialis samples at walmart
Pingback: 62553dced4718.site123.me
Pingback: https://seketu.gonevis.com/high-10-tips-with-order-medicine-online-1/
Pingback: prescription drugs without prior prescription
Pingback: https://625a9a98d5fa7.site123.me/blog/age-dependence-of-healthcare-interventions-for-covid-19-in-ontario-canada
Pingback: hernswe.gonevis.comscientists-model-true-prevalence-of-covid-19-throughout-pandemic
Pingback: selomns.gonevis.coma-modified-age-structured-sir-model-for-covid-19-type-viruses
Pingback: ivermectin uk coronavirus
Pingback: stromectol tablets for humans for sale
Pingback: buy ivermectin from india
Pingback: fwervs.gumroad.com
Pingback: https://trosorin.mystrikingly.com/
Pingback: skuvsbs.gonevis.comwhen-tadalafil-5mg-competitors-is-good
Pingback: hemuyrt.livejournal.com325.html
Pingback: site373681070.fo.team
Pingback: buy cialis cheap
Pingback: canadian rx
Pingback: canada online pharmacies
Pingback: kuebser.estranky.skclankysupereasy-methods-to-study-every-part-about-online-medicine-order-discount.html
Pingback: kewertyn.wordpress.com20220427expect-more-virtual-house-calls-out-of-your-doctor-thanks-to-telehealth-revolution
Pingback: highest rated canadian pharmacies
Pingback: canadian pharmacies that are legit
Pingback: canadian mail order pharmacies
Pingback: canadian pharmaceuticals
Pingback: drugstore online
Pingback: canadian-pharmaceuticals-online.yolasite.com
Pingback: online-pharmacies0.yolasite.com
Pingback: 6270e49a4db60.site123.meblogthe-untold-secret-to-mastering-aspirin-in-just-7-days-1
Pingback: deiun.flazio.com
Pingback: canadian rx
Pingback: kerntyas.gonevis.comthe-mafia-guide-to-online-pharmacies
Pingback: kerbnt.flazio.com
Pingback: ivermectina en ingles
Pingback: canadian cialis
Pingback: canadian pharmacy king
Pingback: womed7.wixsite.compharmacy-onlinepostnew-ideas-into-canada-pharmacies-never-before-revealed
Pingback: how to make hydroxychloroquine
Pingback: legitimate canadian mail order pharmacies
Pingback: https://sekyuna.gonevis.com/three-step-guidelines-for-online-pharmacies/
Pingback: Canadian Pharmacies Shipping to USA
Pingback: canadian mail order pharmacies
Pingback: https://canadian-pharmacy.webflow.io/
Pingback: buy viagra 25mg
Pingback: https://site656670376.fo.team/
Pingback: canadadrugs
Pingback: canadadrugs
Pingback: https://hekluy.ucraft.site/
Pingback: kawsear.fwscheckout.com
Pingback: hertnsd.nethouse.ru
Pingback: https://uertbx.livejournal.com/402.html
Pingback: canadian pharmacies that ship to us
Pingback: avuiom.sellfy.store
Pingback: canadian pharmacy meds
Pingback: https://kwersd.mystrikingly.com/
Pingback: hydroxychloroquine online
Pingback: gewsd.estranky.skclankydrugstore-online.html
Pingback: https://kqwsh.wordpress.com/2022/05/16/what-everybody-else-does-when-it-comes-to-online-pharmacies/
Pingback: buy viagra usa
Pingback: canadian viagra
Pingback: aonubs.website2.me
Pingback: https://dkyubn.bizwebs.com/
Pingback: asebg.bigcartel.comcanadian-pharmacy
Pingback: medicine-online.estranky.skclankyunderstand-covid-19-and-know-the-tricks-to-avoid-it-from-spreading-----medical-services.html
Pingback: https://kertvbs.webgarden.com/
Pingback: tadalafil daily
Pingback: disvaiza.mystrikingly.com
Pingback: canadian pharmacies that ship to us
Pingback: buy viagra 25mg
Pingback: best canadian pharmacy
Pingback: 628f789e5ce03.site123.meblogwhat-everybody-else-does-when-it-comes-to-canadian-pharmacies
Pingback: ivermectin over the counter
Pingback: https://canadian-pharmaceutical.webflow.io/
Pingback: stromectol oral
Pingback: canadian pharmaceuticals online
Pingback: http://pharmacy.prodact.site/
Pingback: canada pharmacies online prescriptions
Pingback: canadianpharmacy
Pingback: canadian discount pharmacies
Pingback: https://selera.mystrikingly.com/
Pingback: Canadian Pharmacies Shipping to USA
Pingback: https://gevcaf.estranky.cz/clanky/safe-canadian-online-pharmacies.html
Pingback: kwersv.proweb.cz
Pingback: kwervb.estranky.czclankycanadian-government-approved-pharmacies.html
Pingback: stromectol purchase
Pingback: bahis siteleri
Pingback: sdtyli.zombeek.cz
Pingback: https://kwsde.zombeek.cz/
Pingback: canada medication
Pingback: iercvsw.wordpress.com20220614canadian-pharmacies-the-fitting-manner
Pingback: ivermectin in india
Pingback: site955305180.fo.team
Pingback: ivermectin 80 mg
Pingback: ivermectin cream
Pingback: ivermectine arrow lab
Pingback: buy viagra usa
Pingback: 62b2f636ecec4.site123.meblogcanadian-pharmaceuticals-online
Pingback: top rated online canadian pharmacies
Pingback: stromectol for lice
Pingback: thefencefilm.co.ukcommunityprofilehswlux