Skip to content

Commit

Permalink
fix: update example README
Browse files Browse the repository at this point in the history
  • Loading branch information
daulet committed Nov 7, 2024
1 parent 8e366e1 commit 8c32990
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions example/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Example

To run the example you need to obtain the built rust library.
```
# Keep this version in sync with go module release
curl -fsSL https://github.com/daulet/tokenizers/releases/download/v0.9.0/libtokenizers.darwin-aarch64.tar.gz | tar xvz
# On M1+ Mac (note arch)
curl -fsSL https://github.com/daulet/tokenizers/releases/download/v1.20.2/libtokenizers.darwin-aarch64.tar.gz | tar xvz
# change -L argument to where you've placed the library download above
go run -ldflags="-extldflags '-L$(pwd)'" main.go
```
```
or `make build` from the parent directory and `go run -ldflags="-extldflags '-L..'" main.go`

0 comments on commit 8c32990

Please sign in to comment.