Documentation ¶
Index ¶
- func BoolFromWrapper(value *wrapperspb.BoolValue) *bool
- func DurationToWrapper(value *time.Duration) *durationpb.Duration
- func Int32FromWrapper(value *wrapperspb.Int32Value) *int32
- func Int32ToWrapper(value *int32) *wrapperspb.Int32Value
- func MapArray[G any, E any](items []E, mapItem func(E) G) []G
- func RatToWrapper(v *big.Rat) []byte
- func StringToWrapper(value *string) *wrapperspb.StringValue
- func TimeToWrapper(value *time.Time) *timestamppb.Timestamp
- func ToObjectId(value string) primitive.ObjectID
- func WrapperToDuration(value *durationpb.Duration) *time.Duration
- func WrapperToInt(value *wrapperspb.Int32Value) *int
- func WrapperToObjectId(value *wrapperspb.StringValue) (*primitive.ObjectID, error)
- func WrapperToRat(value []byte) *big.Rat
- func WrapperToTime(value *timestamppb.Timestamp) *time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolFromWrapper ¶
func BoolFromWrapper(value *wrapperspb.BoolValue) *bool
func DurationToWrapper ¶
func DurationToWrapper(value *time.Duration) *durationpb.Duration
func Int32FromWrapper ¶
func Int32FromWrapper(value *wrapperspb.Int32Value) *int32
func Int32ToWrapper ¶
func Int32ToWrapper(value *int32) *wrapperspb.Int32Value
func RatToWrapper ¶
func StringToWrapper ¶
func StringToWrapper(value *string) *wrapperspb.StringValue
func TimeToWrapper ¶
func TimeToWrapper(value *time.Time) *timestamppb.Timestamp
func ToObjectId ¶
func WrapperToDuration ¶
func WrapperToDuration(value *durationpb.Duration) *time.Duration
func WrapperToInt ¶
func WrapperToInt(value *wrapperspb.Int32Value) *int
func WrapperToObjectId ¶
func WrapperToObjectId(value *wrapperspb.StringValue) (*primitive.ObjectID, error)
func WrapperToRat ¶
func WrapperToTime ¶
func WrapperToTime(value *timestamppb.Timestamp) *time.Time
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.