Source File
module.go
Belonging Package
github.com/ncruces/go-sqlite3/internal/util
package utilimport ()type ConnKey struct{}type moduleKey struct{}type moduleState struct {sysError errormmapStatehandleState}func ( context.Context) context.Context {:= new(moduleState)= experimental.WithMemoryAllocator(, experimental.MemoryAllocatorFunc(alloc.NewMemory))= experimental.WithCloseNotifier(, )= context.WithValue(, moduleKey{}, )return}func ( context.Context) error {// Test needed to simplify testing., := .Value(moduleKey{}).(*moduleState)if {return .sysError}return nil}func ( context.Context, error) {// Test needed to simplify testing., := .Value(moduleKey{}).(*moduleState)if {.sysError =}}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |