jsonutil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: BSD-3-Clause Imports: 1 Imported by: 1

Documentation

Overview

Package jsonutil implements types and functions to make it easier to handle the JSON returned by Typesense.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPointer

func BoolPointer(b bool) *bool

BoolPointer returns a pointer to b.

func IntPointer

func IntPointer(i int) *int

IntPointer returns a pointer to i.

func StringPointer

func StringPointer(s string) *string

StringPointer returns a pointer to s.

Types

type Raw

type Raw []byte

Raw stores raw JSON data, to be unmarshaled at a later time.

func (Raw) MarshalJSON

func (m Raw) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

func (*Raw) UnmarshalJSON

func (m *Raw) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *m to a copy of data.

func (Raw) UnmarshalTo

func (m Raw) UnmarshalTo(v interface{}) error

UnmarshalTo unmarshals m into v.

Jump to

Keyboard shortcuts

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