Skip to content

Commit

Permalink
Document Set(key, val) in README.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Jan 19, 2023
1 parent 56ec85e commit 0770c76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -697,8 +697,9 @@ func main() {
| `Cut(path string) *Koanf` | Cuts the loaded nested conf map at the given path and returns a new Koanf instance with the children |
| `Copy() *Koanf` | Returns a copy of the Koanf instance |
| `Merge(*Koanf)` | Merges the config map of a Koanf instance into the current instance |
| `Delete(path string)` | Delete the value at the given path, and does nothing if path doesn't exist. |
| `MergeAt(in *Koanf, path string)` | Merges the config map of a Koanf instance into the current instance, at the given key path. |
| `Set(path string, val interface{})` | Shorthand wrapper around `Merge()` for directly overriding the value of a given key path. |
| `Delete(path string)` | Delete the value at the given path, and does nothing if path doesn't exist. |
| `Unmarshal(path string, o interface{}) error` | Scans the given nested key path into a given struct (like json.Unmarshal) where fields are denoted by the `koanf` tag |
| `UnmarshalWithConf(path string, o interface{}, c UnmarshalConf) error` | Like Unmarshal but with customizable options |

Expand Down

0 comments on commit 0770c76

Please sign in to comment.