Versions in this module Expand all Collapse all v1 v1.0.3 Mar 6, 2021 Changes in this version + const BusinessType + const CodeBreakUp + const SystemType + var OK = add(SystemType, uint32(codes.OK), "OK") + var Unknown = add(SystemType, uint32(codes.Unknown), "UNKNOWN") + func BusinessCode(code uint32) (spb *spbStatus) + func BusinessCodeAdd(code uint32, message string) *spbStatus + func CodeAdds(data []CodeInfo) + func ExtractCodes(e error) *spbStatus + func SystemCode(code uint32) (spb *spbStatus) + func SystemCodeAdd(code uint32, message string) *spbStatus + func XCodeBusinessCodeHttp(w http.ResponseWriter, r *http.Request) + func XCodeSystemCodeHttp(w http.ResponseWriter, r *http.Request) + type CodeInfo struct + Code uint32 + CodeT uint + Message string