utils

package
v0.0.0-...-5b10fbc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PMarshal = &protojson.MarshalOptions{
	Multiline:       false,
	Indent:          "",
	AllowPartial:    true,
	UseProtoNames:   true,
	UseEnumNumbers:  true,
	EmitUnpopulated: true,
}
View Source
var PUnmarshal = &protojson.UnmarshalOptions{
	AllowPartial:   true,
	DiscardUnknown: false,
	Resolver:       nil,
}

Functions

func ConvertJSONBytesToString

func ConvertJSONBytesToString(b string) string

func MustNewAny

func MustNewAny(src proto.Message) *anypb.Any

func PointerBool

func PointerBool(i bool) *bool

func PointerFloat32

func PointerFloat32(i float32) *float32

func PointerFloat64

func PointerFloat64(i float64) *float64

func PointerInt32

func PointerInt32(i int32) *int32

func PointerInt64

func PointerInt64(i int64) *int64

func PointerString

func PointerString(s string) *string

func PointerUint32

func PointerUint32(i uint32) *uint32

func PointerUint64

func PointerUint64(i uint64) *uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL