Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
update readme.
  • Loading branch information
alexpantyukhin authored Sep 20, 2019
1 parent d5ee631 commit f20aca7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,12 @@ isMatched, mr := match.Match("gophergopher").

## Without result:
```go
func main() {
Match(val).
When(42, func() { fmt.Println("You found the answer to life, universe and everything!") }).
When(ANY, func() { fmt.Println("No.. It's not an answer.") }).
Result()
}
```

# Installation
Expand Down

0 comments on commit f20aca7

Please sign in to comment.