diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-01-22 21:53:29 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-01-22 21:53:29 +0100 |
| commit | 3e65b4f6281ddc4039a27a62428db8a95ffc3677 (patch) | |
| tree | b1005f908be45aa47da48b604f3863ef23a3d7ea /common | |
| parent | 8255a2e51454049f3ac1532f6e1125f528691c37 (diff) | |
refactor(): completely remove old gokord and finish to update everything to use contexts
Diffstat (limited to 'common')
| -rw-r--r-- | common/context.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/common/context.go b/common/context.go index 3a79264..065a994 100644 --- a/common/context.go +++ b/common/context.go @@ -6,12 +6,13 @@ import ( "gorm.io/gorm" ) -type key uint8 +type Key uint8 const ( - keyDB key = 0 - keyDebug key = 1 - keyAuthor key = 2 + keyDB Key = 0 + keyDebug Key = 1 + keyAuthor Key = 2 + KeyCopaingState Key = 3 ) func SetDB(ctx context.Context, db *gorm.DB) context.Context { |
