jsonop

package
v0.5.18 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 10 Imported by: 0

README

サンプルリスト

このディレクトリには以下のサンプルがあります。

file example name note
marshal_nonindent.go json_marshal_non_indent json.Marshal() を利用したサンプルです.
marshal_indent.go json_marshal_indent json.MarshalIndent() を利用したサンプルです.
marshal_slice.go json_marshal_slice json.Marshal() で スライス をマーシャルした場合のサンプルです.
marshal_slice.go json_marshal_map json.Marshal() で マップ をマーシャルした場合のサンプルです.
marshal_date_rfc3339.go json_marshal_date_rfc3339 RFC3339形式の日付を json.Marshal するサンプルです.
marshal_date_custom.go json_marshal_date_custom json.Marshal にて 独自の日付形式 を利用するサンプルです.
unmarshal_struct.go json_unmarshal_struct json.Unmarshal() を利用したサンプルです.
unmarshal_slice.go json_unmarshal_slice json 配列 を json.Unmarshal した場合のサンプルです.
unmarshal_map.go json_unmarshal_map json マップ を json.Unmarshal した場合のサンプルです.
unmarshal_date_rfc3339.go json_unmarshal_date_rfc3339 RFC3339形式の日付文字列 を json.Unmarshal した場合のサンプルです.
unmarshal_date_custom.go json_unmarshal_date_custom 独自の日付文字列 を json.Unmarshal した場合のサンプルです.
decoder.go json_decoder json.NewDecoder を使ったサンプルです.
encoder.go json_encoder json.Encoder を使ったサンプルです.
disallow_unknown_fields.go json_disallow_unknown_fields *Decoder.DisallowUnknownFields のサンプルです。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decoder

func Decoder() error

Decoder は、json.NewDecoder を使ったサンプルです.

func DisallowUnknownFields added in v0.5.13

func DisallowUnknownFields() error

DisallowUnknownFields は、*Decoder.DisallowUnknownFields のサンプルです。

REFERENCES

func Encoder

func Encoder() error

Encoder は、json.Encoder を使ったサンプルです.

func MarshalDateCustom

func MarshalDateCustom() error

MarshalDateCustom は、json.Marshal にて 独自の日付形式 を利用するサンプルです.

func MarshalDateRfc3339

func MarshalDateRfc3339() error

MarshalDateRfc3339 は、RFC3339形式の日付を json.Marshal するサンプルです.

func MarshalIndent

func MarshalIndent() error

MarshalIndent は、json.MarshalIndent() を利用したサンプルです.

func MarshalMap

func MarshalMap() error

MarshalMap は、json.Marshal() で マップ をマーシャルした場合のサンプルです.

func MarshalNonIndent

func MarshalNonIndent() error

MarshalNonIndent は、json.Marshal() を利用したサンプルです.

func MarshalSlice

func MarshalSlice() error

MarshalSlice は、json.Marshal() で スライス をマーシャルした場合のサンプルです.

func NewRegister

func NewRegister() mapping.Register

func UnmarshalDateCustom

func UnmarshalDateCustom() error

UnmarshalDateCustom は、独自の日付文字列 を json.Unmarshal した場合のサンプルです.

func UnmarshalDateRfc3339

func UnmarshalDateRfc3339() error

UnmarshalDateRfc3339 は、RFC3339形式の日付文字列 を json.Unmarshal した場合のサンプルです.

func UnmarshalMap

func UnmarshalMap() error

UnmarshalMap は、json マップ を json.Unmarshal した場合のサンプルです.

func UnmarshalSlice

func UnmarshalSlice() error

UnmarshalSlice は、json 配列 を json.Unmarshal した場合のサンプルです.

func UnmarshalStruct

func UnmarshalStruct() error

UnmarshalStruct は、json.Unmarshal() を利用したサンプルです.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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