utils

package
v6.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBoolPointer

func GetBoolPointer(value bool) *bool

GetBoolPointer returns pointer value

func IsEmpty

func IsEmpty(s string) bool

IsEmpty ... see http://golang.org/ref/spec#Assignability

func Sanatize

func Sanatize(s string) string

Sanatize ...

func StringGetJSON

func StringGetJSON(s string) string

StringGetJSON - just get the JSON from the string

should only find the first json

func StringRemoveJSON

func StringRemoveJSON(s string) string

StringRemoveJSON - remove a json string from regular strings

Types

type Nstring

type Nstring string

func NewNstring

func NewNstring(s string) Nstring

NewNstring - create a new Nstring type

func (*Nstring) IsNil

func (n *Nstring) IsNil() bool

func (*Nstring) Nil

func (n *Nstring) Nil()

func (*Nstring) String

func (n *Nstring) String() string

func (*Nstring) UnmarshalJSON

func (n *Nstring) UnmarshalJSON(b []byte) (err error)

UnmarshalJSON - convert byte stream to string

Jump to

Keyboard shortcuts

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