Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
miladrahimi committed Aug 20, 2021
1 parent d61cc23 commit 9d7830e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ go get github.com/golobby/cast
```

### Sample Usage
The following example demonstrates how to use the GoLobby Cast package.
The following examples demonstrate how to use the GoLobby Cast package.

```go
val, err := cast.FromString("666", "int32")
// `val` type: int32
// `val` value: 666
```

```go
val, err := cast.FromString("1", cast.Bool)
// `val` type: bool
// `val` value: true
Expand Down

0 comments on commit 9d7830e

Please sign in to comment.