Top 0.5% dependent packages on proxy.golang.org
Top 0.6% dependent repos on proxy.golang.org
Top 3.7% forks on proxy.golang.org
Top 1.0% docker downloads on proxy.golang.org
proxy.golang.org : github.com/olebedev/config
Package config provides convenient access methods to configuration stored as JSON or YAML. Let's start with a simple YAML file config.yml: We can parse it using ParseYaml(), which will return a *Config instance on success: An equivalent JSON configuration could be built using ParseJson(): From now, we can retrieve configuration values using a path in dotted notation: Besides String(), other types can be fetched directly: Bool(), Float64(), Int(), Map() and List(). All these methods will return an error if the path doesn't exist, or the value doesn't match or can't be converted to the requested type. A nested configuration can be fetched using Get(). Here we get a new *Config instance with a subset of the configuration: Then the inner values are fetched relatively to the subset: For lists, the dotted path must use an index to refer to a specific value. To retrieve the information from a user stored in the configuration above: JSON or YAML strings can be created calling the appropriate Render*() functions. Here's how we render a configuration like the one used in these examples: This results in a configuration string to be stored in a file or database. For more more convenience it can parse OS environment variables and command line arguments. We can also specify the order of parsing: In case of OS environment all existing at the moment of parsing keys will be scanned in OS environment, but in uppercase and the separator will be `_` instead of a `.`. If EnvPrefix() is used the given prefix will be used to lookup the environment variable, e.g PREFIX_FOO_BAR will set foo.bar. In case of flags separator will be `-`. In case of command line arguments possible to use regular dot notation syntax for all keys. For see existing keys we can run application with `-h`. We can use unsafe method to get value: There is unsafe methods, like regular, but wuth prefix `U`.
Registry
-
Source
- Documentation
- JSON
- codemeta.json
purl: pkg:golang/github.com/olebedev/config
Keywords:
configuration
, golang
, json
, yaml
License: MIT
Latest release: over 3 years ago
First release: about 10 years ago
Namespace: github.com/olebedev
Dependent packages: 77
Dependent repositories: 97
Stars: 261 on GitHub
Forks: 45 on GitHub
Docker dependents: 14
Docker downloads: 4,415
See more repository details: repos.ecosyste.ms
Last synced: 1 day ago
github.com/k4cg/matomat-service/maas-server v0.0.0-20240120153725-70bfa02aea9c
Matomat as a Service (MaaS)2 versions - Latest release: almost 2 years ago - 5 stars on GitHub
github.com/irisnet/irishub/v2 v2.1.0
A BPoS blockchain that enables cross-chain interoperability through a unified service model -- bu...7 versions - Latest release: almost 2 years ago - 287 stars on GitHub
github.com/pgulb/jsondb v0.0.0-20231216182348-ea67807f9447
Golang embedded database2 versions - Latest release: almost 2 years ago - 0 stars on GitHub
github.com/solarfs/go-chainstorage-cli v0.0.18
Copyright © 2023 pld Permission is hereby granted, free of charge, to any person obtaining a cop...5 versions - Latest release: about 2 years ago - 0 stars on GitHub
github.com/solarfs/go-chainstorage-sdk v0.0.13
6 versions - Latest release: about 2 years ago - 1 dependent package - 1 dependent repositories - 0 stars on GitHubgithub.com/RPGPG/jsondb v0.0.0-20231017200454-3eb63b34bd5c
3 versions - Latest release: about 2 years ago - 0 stars on GitHubgithub.com/RPGPG/jsondb/config v0.0.0-20231017200454-3eb63b34bd5c
4 versions - Latest release: about 2 years ago - 1 dependent package - 0 stars on GitHubgithub.com/taoey/iris-admin v0.0.0-20231014122314-f9427d055066
iris(go语言web框架)脚手架项目,用于快速搭建项目3 versions - Latest release: about 2 years ago - 11 stars on GitHub
github.com/zhao520a1a/go-base v0.0.0-20230906123018-03113a72e587
一些 Go 的语法练习Demo、实用的工具包1 version - Latest release: about 2 years ago - 0 stars on GitHub
github.com/solarfs/go-chainstorage-sdk/cmd v0.0.0-20230725075549-ecc15fc29281
2 versions - Latest release: over 2 years ago - 0 stars on GitHubgithub.com/dochench/wtf v0.0.0-20230621153617-9c5270fcd9ee
The personal information dashboard for your terminal1 version - Latest release: over 2 years ago - 0 stars on GitHub
github.com/paradeum-team/chainstorage-cli v0.0.7
Copyright © 2023 pld Permission is hereby granted, free of charge, to any person obtaining a cop...7 versions - Latest release: over 2 years ago - 0 stars on GitHub
github.com/paradeum-team/chainstorage-sdk/cmd v0.0.0-20230609101322-eb566523e45a
2 versions - Latest release: over 2 years ago - 0 stars on GitHubgithub.com/paradeum-team/chainstorage-sdk v0.0.6
6 versions - Latest release: over 2 years ago - 2 dependent packages - 1 dependent repositories - 0 stars on GitHubgithub.com/paradeum-team/chainstorage-sdk/sdk v0.0.0-20230606085429-eeaa8c4e8d0a
1 version - Latest release: over 2 years ago - 2 dependent packages - 0 stars on GitHubgitee.com/copylian/lian-go.git v0.0.0-20230501143555-d8850a5a40e0
1 version - Latest release: over 2 years agogithub.com/nimrostafarian/gridfury v0.0.1-gridfury
gridfury1 version - Latest release: over 2 years ago - 0 stars on GitHub
github.com/fanfury-sports/fanfury v0.3.0
1 version - Latest release: over 2 years agogithub.com/lijianjunljj/gmfcommon v1.1.1
10 versions - Latest release: over 2 years ago - 2 dependent packages - 1 stars on GitHubgithub.com/fury-zone/fury v0.0.0-20230310120511-ca483ac2d2f3
fury1 version - Latest release: over 2 years ago - 0 stars on GitHub
github.com/lijianjunljj/gmf v1.0.1
go语言微服务框架1 version - Latest release: over 2 years ago - 1 stars on GitHub
github.com/gridironzone/gridiron v0.0.0-20230301081122-f262f1df32aa
About As the centerpiece of the FURY Network, GRID (a.k.a. GRIDhub) will be the first dedicated s...4 versions - Latest release: over 2 years ago - 0 stars on GitHub
github.phpd.cn/wtfutil/wtf v0.43.0
53 versions - Latest release: almost 3 years agogithub.com/gridiron-zone/furyhub v0.0.0-20230210080850-c129b37dc9d7
1 version - Latest release: almost 3 years agogithub.com/gridiron-zone/fanfury v0.0.0-20230210065449-619a08119658
fanfury4 versions - Latest release: almost 3 years ago - 0 stars on GitHub
github.com/gridiron-zone/gridiron v0.1.0-gridtest.1
11 versions - Latest release: almost 3 years agogithub.com/gridironprotocol/grid-c v0.0.0-20230129171822-3efe8407cd50
1 version - Latest release: almost 3 years agogithub.com/mage-war/petri v0.0.0-20230109233150-06c309940ee6
1 version - Latest release: almost 3 years ago - 0 stars on GitHubgithub.com/mage-war/coven v0.0.0-20230109185423-65bf7437e901
1 version - Latest release: almost 3 years ago - 0 stars on GitHubgithub.com/furya-official/furyhub v0.0.0-20230103003806-9b88b4571d56
furyhub11 versions - Latest release: almost 3 years ago - 0 stars on GitHub
github.com/doctorfree/wtf v0.0.0-20221230183525-ac5bdac901d1 💰
The personal information dashboard for your terminal13 versions - Latest release: almost 3 years ago - 1 stars on GitHub
github.com/irisnet/iris-hub v1.4.1
A BPoS blockchain that enables cross-chain interoperability through a unified service model -- bu...91 versions - Latest release: almost 3 years ago - 275 stars on GitHub
github.com/petrinetwork/petrihub v1.4.1
A BPoS blockchain that enables cross-chain interoperability through a unified service model -- bu...91 versions - Latest release: almost 3 years ago - 0 stars on GitHub
github.com/irisnet/irishub v1.4.1
A BPoS blockchain that enables cross-chain interoperability through a unified service model -- bu...91 versions - Latest release: almost 3 years ago - 8 dependent packages - 5 dependent repositories - 275 stars on GitHub
github.com/petri-labs/petrihub v1.4.1
A BPoS blockchain that enables cross-chain interoperability through a unified service model -- bu...91 versions - Latest release: almost 3 years ago - 0 stars on GitHub
github.com/furynet/furyhub v1.4.1
🧬 🏆 As the centrepiece of the FURY Network, GRID (a.k.a. GRIDhub) will be the first dedicated s...92 versions - Latest release: almost 3 years ago - 0 stars on GitHub
github.com/kwaak-resources/wtf-tuidashboard v0.42.0
52 versions - Latest release: about 3 years ago - 0 stars on GitHubgithub.com/bsn-spartan/nc-cosmos v1.0.2
Spartan-II Chain is a non-cryptocurrency public chain based on Cosmos SDK.1 version - Latest release: about 3 years ago - 4 stars on GitHub
github.com/BSN-Spartan/NC-Cosmos v1.0.2
Spartan-II Chain is a non-cryptocurrency public chain based on Cosmos SDK.1 version - Latest release: about 3 years ago - 4 stars on GitHub
github.com/bianjieai/spartan-cosmos v1.0.2
4 versions - Latest release: about 3 years ago - 1 dependent package - 1 dependent repositories - 3 stars on GitHubgithub.com/alekstet/question v0.0.0-20220527043320-03314b0cc115
1 version - Latest release: over 3 years ago - 0 stars on GitHubgithub.com/alekstet/linux_service_checker v0.0.0-20220328073436-1b384be67427
Realtime Linux services manager1 version - Latest release: over 3 years ago - 0 stars on GitHub
github.com/tryanzu/core v0.0.0-20220309153813-b84af7bc5432
2 versions - Latest release: over 3 years agogithub.com/yusufsamsudeen/goty v0.0.0-20220101094758-71ac6f9a1471
Wrapper for the awesome GORM for quick development1 version - Latest release: almost 4 years ago - 0 stars on GitHub
github.com/benji2512/wtf v0.41.0 💰
The personal information dashboard for your terminal51 versions - Latest release: almost 4 years ago - 0 stars on GitHub
github.com/nreckart/wtf v0.41.0
The personal information dashboard for your terminal52 versions - Latest release: almost 4 years ago - 0 stars on GitHub
github.com/sssvip/goutil v0.9.24
just for personal use.83 versions - Latest release: almost 4 years ago - 2 dependent packages - 2 stars on GitHub
github.com/karashiiro/prima-google-apis v0.0.0-20211114201013-e8227df8afe9
1 version - Latest release: about 4 years agogithub.com/MeztliRA/gemdot v1.8.0
A CLI app to store your notes. written in go.11 versions - Latest release: about 4 years ago - 0 stars on GitHub
github.com/meztlira/gemdot v1.8.0
A CLI app to store your notes.11 versions - Latest release: about 4 years ago - 0 stars on GitHub
github.com/nathanpaulyoung/msct v0.0.0-20210502232205-9b7721a97c25
1 version - Latest release: over 4 years agogithub.com/adamazing/wtf v0.37.0 💰
The personal information dashboard for your terminal45 versions - Latest release: over 4 years ago - 0 stars on GitHub
github.com/cryog0at/wtf v0.37.0
45 versions - Latest release: over 4 years agogithub.com/battleman/wtf v0.36.0
The personal information dashboard for your terminal44 versions - Latest release: over 4 years ago - 0 stars on GitHub
github.com/Taoey/iris-cli v0.0.0-20210205094634-61a276accc5e
iris(go语言web框架)脚手架项目,用于快速搭建项目1 version - Latest release: almost 5 years ago - 11 stars on GitHub
github.com/stevemeier/mirrorlist v0.0.0-20210125210934-4702d67b0d0f
Mirrorlist implemented in Go1 version - Latest release: almost 5 years ago - 7 stars on GitHub
github.com/dipper-labs/dip-bridge v1.0.2
3 versions - Latest release: almost 5 years ago - 0 stars on GitHubgithub.com/dipper-labs/go-sdk v1.0.3
4 versions - Latest release: about 5 years ago - 0 stars on GitHubgithub.com/Dipper-Labs/go-sdk v1.0.3
4 versions - Latest release: about 5 years ago - 1 dependent package - 2 dependent repositories - 0 stars on GitHubgithub.com/tim-fitzgerald/wtf v0.34.0 💰
The personal information dashboard for your terminal42 versions - Latest release: about 5 years ago - 0 stars on GitHub
github.com/applegreengrape/wtf v0.33.0 💰
The personal information dashboard for your terminal41 versions - Latest release: about 5 years ago - 0 stars on GitHub
github.com/Taoey/hot-search-back v0.0.0-20201006062540-7415ef318190
热搜项目-后端1 version - Latest release: about 5 years ago - 0 stars on GitHub
github.com/antinvestor/frame v0.0.0-20200825162347-41d89a10bb53
1 version - Latest release: over 5 years agogithub.com/NetCloth/go-sdk v1.3.2
Go SDK for NetCloth Blockchain23 versions - Latest release: over 5 years ago - 2 dependent packages - 1 stars on GitHub
github.com/netcloth/go-sdk v1.3.2
Go SDK for NetCloth Blockchain23 versions - Latest release: over 5 years ago - 1 stars on GitHub
github.com/senorprogrammer/til v0.1.0 💰
🍊 A static site generator for capturing quick notes1 version - Latest release: over 5 years ago - 14 stars on GitHub
github.com/louisun/wtf v0.30.0 💰
The personal information dashboard for your terminal.38 versions - Latest release: over 5 years ago - 0 stars on GitHub
github.com/choerodon/go-register-server v0.0.0-20200508082416-290676b2a39d
The microservice registration is implemented by monitoring the state changes of the k8s pod, and ...1 version - Latest release: over 5 years ago - 14 stars on GitHub
github.com/cildhdi/In-charge v0.0.0-20191223141208-78f8b4dd1652
1 version - Latest release: almost 6 years agogithub.com/cori/wtf v0.25.0
The personal information dashboard for your terminal.33 versions - Latest release: almost 6 years ago - 0 stars on GitHub
gitlab.com/zdcca/convertcommerce v0.0.0-20191107230228-601d8910890b
Convert ZW commerces list from a format to another1 version - Latest release: about 6 years ago - 0 stars on GitLab.com
github.com/armakuni/cf-aklogin v1.3.0
CF Login tool to switch between CF environments with a single command.4 versions - Latest release: about 6 years ago - 9 stars on GitHub
github.com/hemu/wtf v0.23.0 💰
The personal information dashboard for your terminal.31 versions - Latest release: about 6 years ago - 0 stars on GitHub
github.com/seanstoppable/wtf v0.21.0 💰
The personal information dashboard for your terminal.29 versions - Latest release: about 6 years ago - 0 stars on GitHub
github.com/Seanstoppable/wtf v0.21.0 💰
The personal information dashboard for your terminal.29 versions - Latest release: about 6 years ago - 0 stars on GitHub
Check this option to include packages that no longer depend on this package in their latest version but previously did.