This file contains hidden or 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
| -- Decode Base58 | |
| -- Based on https://digitalbazaar.github.io/base58-spec/ | |
| CREATE OR REPLACE FUNCTION decode_base58(input TEXT) | |
| RETURNS BYTEA AS $$ | |
| DECLARE | |
| base58_decode_map CONSTANT TEXT := '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'; | |
| num BYTEA := E'\\x00'; | |
| char CHAR; | |
| value INT; | |
| carry INT; |
This file contains hidden or 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" |
This file contains hidden or 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 hidden or 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 |