pkg

package
v0.0.0-...-67c2fac Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertJSONBytes

func ConvertJSONBytes(b []byte, paths ...string) ([]byte, error)

ConvertJSONBytes accepts serialized JSON data and converts its internal objects to arrays according to the passed paths strings and returns a resulting byte slice

func ConvertJSONBytesContext

func ConvertJSONBytesContext(ctx context.Context, b []byte, paths ...string) ([]byte, error)

ConvertJSONBytesContext accepts serialized JSON data and converts its internal objects to arrays according to the passed paths strings and returns a resulting byte slice It takes into account the context passed to it, so that any context-related actions are handled during execution

func ConvertJSONString

func ConvertJSONString(str string, paths ...string) (string, error)

ConvertJSONString accepts serialized stringified JSON data and converts its internal objects to arrays according to the passed paths strings and returns a resulting string

func ConvertJSONStringContext

func ConvertJSONStringContext(ctx context.Context, str string, paths ...string) (string, error)

ConvertJSONStringContext accepts serialized JSON data and converts its internal objects to arrays according to the passed paths strings and returns a resulting string It takes into account the context passed to it, so that any context-related actions are handled during execution

Types

This section is empty.

Jump to

Keyboard shortcuts

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