package apperr type metakey uint16 const ( PgErrorCode metakey = iota RedisErrorCode ) func (m metakey) String() string { switch m { case PgErrorCode: return "pg_err_code" case RedisErrorCode: return "redis_err_code" default: return "unknown" } }