Documentation
¶
Index ¶
- func AnyToJson(cast any) (string, error)
- func BoolPtr(b bool) *bool
- func FloatPtr(f float64) *float64
- func FromAnyToPrimitive(val *anypb.Any) interface{}
- func Int2Str(i int) string
- func IntPtr(i int) *int
- func JsonToAny(raw any, cast any) error
- func ParseStrPtnToStr(str *string) string
- func ParseStrToPtn(val string) *string
- func ParseTimeToTimestamp(val *time.Time) *timestamppb.Timestamp
- func ParseTimestampToTimePtn(val *timestamppb.Timestamp) *time.Time
- func Str2Int(str string) int
- func StrPtr(s string) *string
- func TimePtr(t time.Time) *time.Time
- func ToAny(val interface{}) *anypb.Any
- func ToInterfaceMap(in map[string]string) map[string]interface{}
- func ToStringMap(in map[string]interface{}) (map[string]string, error)
- type Address
- type State
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromAnyToPrimitive ¶ added in v0.1.2
func ParseStrPtnToStr ¶ added in v0.0.8
func ParseStrToPtn ¶ added in v0.0.8
func ParseTimeToTimestamp ¶ added in v0.0.8
func ParseTimeToTimestamp(val *time.Time) *timestamppb.Timestamp
func ParseTimestampToTimePtn ¶ added in v0.0.9
func ParseTimestampToTimePtn(val *timestamppb.Timestamp) *time.Time
func ToInterfaceMap ¶ added in v0.0.2
ToInterfaceMap converts map[string]string to map[string]interface{}
Types ¶
type Address ¶ added in v0.0.4
type Address struct {
Line1 string `json:"line1" bson:"line1"`
Line2 string `json:"line2,omitempty" bson:"line2,omitempty"`
City string `json:"city" bson:"city"`
State string `json:"state,omitempty" bson:"state,omitempty"`
PostalCode string `json:"postal_code,omitempty" bson:"postal_code,omitempty"`
CountryCode string `json:"country_code" bson:"country_code"`
Latitude *float64 `json:"latitude,omitempty" bson:"latitude,omitempty"`
Longitude *float64 `json:"longitude,omitempty" bson:"longitude,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.