convert

package
v0.76.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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