ubgo is in early alpha: libraries and APIs may still change.

Skip to content
ubgo Alpha

entkit

Column types and field helpers for ent and gqlgen, as small independent modules.

go get github.com/ubgo/entkit/jsonmap
Language
Go
Go version
–
Core deps
–
Latest tag
none
License
Apache-2.0
Go modules
9

How it fits together

Code from the README

// Service that only needs a password hash column
import (
    "github.com/ubgo/entkit/passwordtype"
    "github.com/ubgo/entkit/ent_passwordtype"
)
// → go.sum carries: ubgo/crypt, golang.org/x/crypto, entgo.io/ent
// → does NOT carry: ubgo/jsontype, ubgo/jsonslice, gqlgen

From the entkit README.

At a glance (from the README)

Sub-moduleTypeWhat it storesDeps
jsonmapJsonMapDynamic JSON object ({...})stdlib only
passwordtypeHashedPasswordOne-way argon2id hash for user authenticationgithub.com/ubgo/crypt
encryptedtypeEncryptedStringTwo-way AES-256-GCM (with transparent CBC fallback on reads)github.com/ubgo/crypt