This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
America/Atikokan | |
America/Blanc-Sablon | |
America/Cambridge_Bay | |
America/Creston | |
America/Dawson | |
America/Dawson_Creek | |
America/Edmonton | |
America/Fort_Nelson | |
America/Glace_Bay | |
America/Goose_Bay |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package queue | |
import "sync" | |
type Queue[T any] struct { | |
items []T | |
mu sync.RWMutex | |
} | |
func New[T any]() *Queue[T] { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package pg | |
import ( | |
"context" | |
"errors" | |
"fmt" | |
"time" | |
"github.com/google/uuid" | |
"gorm.io/gorm" |