Documentation
¶
Index ¶
- func BoolToNullable(v bool) *bool
- func DurationPbToDuration(d *durationpb.Duration) time.Duration
- func DurationToDurationPb(d time.Duration) *durationpb.Duration
- func Int64ToInt64Value(v int64) *wrapperspb.Int64Value
- func Int64ToNullable(v int64) *int64
- func Int64ValueToInt64(v *wrapperspb.Int64Value) int64
- func NullableBool(v *bool) bool
- func NullableInt64(v *int64) int64
- func NullableString(v *string) string
- func StringToNullable(v string) *string
- func TimeToTimestamp(t time.Time) *timestamppb.Timestamp
- func TimestampToTime(ts *timestamppb.Timestamp) time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DurationPbToDuration ¶
func DurationPbToDuration(d *durationpb.Duration) time.Duration
DurationPbToDuration converts *durationpb.Duration to time.Duration
func DurationToDurationPb ¶
func DurationToDurationPb(d time.Duration) *durationpb.Duration
DurationToDurationPb converts time.Duration to *durationpb.Duration
func Int64ToInt64Value ¶
func Int64ToInt64Value(v int64) *wrapperspb.Int64Value
Int64ToInt64Value converts int64 to *wrapperspb.Int64Value
func Int64ToNullable ¶
Int64ToNullable converts int64 to *int64
func Int64ValueToInt64 ¶
func Int64ValueToInt64(v *wrapperspb.Int64Value) int64
Int64ValueToInt64 converts *wrapperspb.Int64Value to int64
func NullableInt64 ¶
NullableInt64 converts *int64 to int64 (for wrappers)
func NullableString ¶
NullableString converts *string to string
func StringToNullable ¶
StringToNullable converts string to *string
func TimeToTimestamp ¶
func TimeToTimestamp(t time.Time) *timestamppb.Timestamp
TimeToTimestamp converts time.Time to *timestamppb.Timestamp
func TimestampToTime ¶
func TimestampToTime(ts *timestamppb.Timestamp) time.Time
TimestampToTime converts *timestamppb.Timestamp to time.Time
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.