Documentation ¶
Index ¶
- Constants
- func FromJsonString(j string, v interface{}) error
- func GetTraceSpanID(ctx context.Context) string
- func Marshal(v interface{}) ([]byte, error)
- func Ptr[T any](v T) *T
- func ToJsonString(v interface{}) string
- func ToList(tag string, in interface{}) [2]string
- func ToMap(tag string, in interface{}) map[string]interface{}
- func Unmarshal(data []byte, v interface{}) error
Constants ¶
View Source
const ( EmptyString = "" CommonLayout = "2006-01-02 15:04:05" EmptyLen = 0 Zero = 0 MaxSize = 2000 DefaultPageNo = 1 DefaultPageSize = 20 DefaultRetCode = 0 Success = "success" )
common constant
Variables ¶
This section is empty.
Functions ¶
func GetTraceSpanID ¶ added in v1.0.2
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.