Skip to content

Commit

Permalink
feat: add fp into the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Parham Alvani committed Dec 27, 2023
1 parent 6d1c7b1 commit a1db003
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
Share utilities between Kaytu go projects and microservices. These modules are provided
under the `/pkg` and as follows:

### `/pkg/fp`

This package contains functional programming style of things, for example when you want to accept optional
string parameter you can define it as `*string` and then using the `fp` package pass the value into it:

```go
fp.Optional("I am an optional string")
```

### `/pkg/koanf`

Load configuration from environment variables, file and default based on [koanf](https://github.com/knadh/koanf).
Expand Down

0 comments on commit a1db003

Please sign in to comment.