Skip to content

Instantly share code, notes, and snippets.

View mikelsr's full-sized avatar
🐢
slow and steady

Mikel Solabarrieta mikelsr

🐢
slow and steady
View GitHub Profile

Keybase proof

I hereby claim:

  • I am mikelsr on github.
  • I am mikelsr (https://keybase.io/mikelsr) on keybase.
  • I have a public key whose fingerprint is 2DE8 693F 5802 D72C 747C 20D6 ADD1 9C08 BA69 5C4B

To claim this, I am signing this object:

@mikelsr
mikelsr / uniquequeue.go
Last active September 22, 2023 17:51
Go: Thread-safe queue with no duplicate values
package main
import (
"errors"
"fmt"
"sync"
)
var (
errQueueFull = errors.New("queue full")