strictnull

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package strictnull provides types for lossless handling of nullable JSON values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type String

type String struct {
	null.String
}

String is a nullable string value that retains empty string in the input It's useful to handle string JSON values that could be `null` in the incoming log JSON. It's `omitempty` behavior when used with `jsoniter` is to only omit `null` in the output

func FromString

func FromString(s string) String

FromString creates a non-null String. It is inlined by the compiler.

Jump to

Keyboard shortcuts

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