convert

package
v0.322.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeQueryParam added in v0.188.0

func EncodeQueryParam(params url.Values, key string, value interface{}) url.Values

EncodeQueryParam takes a type generated by sysl-go and encodes it into a url.Values map. Calling Encode() on the returned object will serialise the values into a string using the default OpenAPI3.0 serialisation format. e.g duplicate=foo,duplicate=bar.

func StringToBoolPtr

func StringToBoolPtr(ctx context.Context, input string) (*bool, error)

StringToBoolPtr takes a string and converts it to a bool pointer.

func StringToIntPtr

func StringToIntPtr(ctx context.Context, input string) (*int64, error)

StringToIntPtr takes a string and converts it to an integer pointer.

func StringToStringPtr

func StringToStringPtr(ctx context.Context, input string) (*string, error)

StringToStringPtr takes a string and converts it to a string pointer.

Types

type JSONTime

type JSONTime struct {
	time.Time
}

func StringToTimePtr

func StringToTimePtr(ctx context.Context, input string) (*JSONTime, error)

StringToTimePtr takes a string and converts it to a time.Time pointer.

func (JSONTime) MarshalJSON

func (i JSONTime) MarshalJSON() ([]byte, error)

func (*JSONTime) UnmarshalJSON

func (i *JSONTime) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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