Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var val MetadataRow
reader := ctlstore.Reader()
meta := new(MetadataRow)
_, err := reader.GetRowByKey(ctx, meta, "resources", "metadata", "rs_123")
return meta, err
}
`}
{`
package flags
import "github.com/segmentio/ctlstore"
type FlagRow struct {
Name string \`ctlstore:"flag_name"\`
Users []byte \`ctlstore:"enabled_users"\`
}
func Render(ctx context.Content, userID string) error {
reader := ctlstore.Reader()
row := new(FlagRow)
const Content = () => (
Your app shouldn't crash when your database falls over