Skip to content

Commit

Permalink
docs: fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
woodpenker committed Dec 17, 2020
1 parent 5973e65 commit 4167eb1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ Linux 5.9.13-200.fc33.x86_64 #1 SMP Tue Dec 8 15:42:52 UTC 2020 x86_64 x86_64 x8
Example:

```go

import(
queue "github.com/woodpenker/goqueue"
)
func main() {
q := NewQueue(10)
q := queue.NewQueue(10)
q.Push(12345)
q.Push("hello")
v1 := q.Pop()
Expand Down

0 comments on commit 4167eb1

Please sign in to comment.