package
0.1.5
Repository: https://github.com/ygrpc/protodb.git
Documentation: pkg.go.dev

# Functions

BuildMsgFieldsMap build msgFieldsMap, if columnNames is nil, return all msg fields.
Fields returns the struct fields names list.
FieldsDeep returns "flattened" fields (fields from anonymous inner structs are treated as normal fields).
GetField returns the value of the provided obj field.
GetFieldKind returns the kind of the provided obj field.
GetFieldTag returns the provided obj field tag value.
GetFieldType returns the kind of the provided obj field.
No description provided by the author
No description provided by the author
No description provided by the author
GetPrimaryKeyFieldDescs get primary key field descriptors, primaryKey(lowercase) -> field descriptor.
GetStructAllDirectFieldNames 得到一个struct里面所有的导出的字段名,不包含嵌入的匿名字段.
GetStructAllFieldNames 得到一个struct里面所有的导出的字段名,包含嵌入的匿名字段.
GetStructAllFieldNamesAndJsonTag 得到一个struct里面所有的导出的字段名和对应的json tag名 fieldnamefirst:是否将字段名作为key,true:fieldname作为key,false:tagname作为key.
No description provided by the author
get utc time format yyyy-mm-dd HH:MM:SS of time.
get utc time format yyyy-mm-dd HH:MM:SS of time.
HasField checks if the provided field name is part of a struct.
HasMethod 对象是否有此方法.
No description provided by the author
No description provided by the author
No description provided by the author
Items returns the field - value struct pairs as a map.
ItemsDeep returns "flattened" items (fields from anonymous inner structs are treated as normal fields).
No description provided by the author
NowTimeStrInLocal return yyyy-mm-dd hh:mm:ss in local time.
NowTimeStrInUtc return yyyy-mm-dd hh:mm:ss in utc time.
NowTimeStrInUtcZzz return yyyy-mm-dd hh:mm:ss.zzz in utc time.
ParseUTCTime parse yyyy-mm-dd HH:MM:SS as utc time when parse err, return a empty time.Time.
No description provided by the author
SetField sets the provided obj field with provided value.
SetFields 设置对象相应的值 obj.fieldNames0=fieldVals0, ...
Tags lists the struct tag fields.
TagsDeep returns "flattened" tags (fields from anonymous inner structs are treated as normal fields).
No description provided by the author

# Constants

ISOTimeFormat iso time format yyyy-mm-dd HH:MM:SS.
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author