mirror of https://github.com/spf13/viper.git
Update README.md
This commit is contained in:
parent
d55cd57115
commit
a4e4f65a0c
|
@ -594,7 +594,7 @@ configuration level.
|
||||||
|
|
||||||
Viper can access array indices by using numbers in the path. For example:
|
Viper can access array indices by using numbers in the path. For example:
|
||||||
|
|
||||||
```json
|
```jsonc
|
||||||
{
|
{
|
||||||
"host": {
|
"host": {
|
||||||
"address": "localhost",
|
"address": "localhost",
|
||||||
|
@ -622,7 +622,7 @@ GetInt("host.ports.1") // returns 6029
|
||||||
Lastly, if there exists a key that matches the delimited key path, its value
|
Lastly, if there exists a key that matches the delimited key path, its value
|
||||||
will be returned instead. E.g.
|
will be returned instead. E.g.
|
||||||
|
|
||||||
```json
|
```jsonc
|
||||||
{
|
{
|
||||||
"datastore.metric.host": "0.0.0.0",
|
"datastore.metric.host": "0.0.0.0",
|
||||||
"host": {
|
"host": {
|
||||||
|
|
Loading…
Reference in New Issue