package
0.5.36
Repository: https://github.com/devlights/try-golang.git
Documentation: pkg.go.dev

# README

サンプルリスト

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

fileexample namenote
marshal_nonindent.gojson_marshal_non_indentjson.Marshal() を利用したサンプルです.
marshal_indent.gojson_marshal_indentjson.MarshalIndent() を利用したサンプルです.
marshal_slice.gojson_marshal_slicejson.Marshal() で スライス をマーシャルした場合のサンプルです.
marshal_slice.gojson_marshal_mapjson.Marshal() で マップ をマーシャルした場合のサンプルです.
marshal_date_rfc3339.gojson_marshal_date_rfc3339RFC3339形式の日付を json.Marshal するサンプルです.
marshal_date_custom.gojson_marshal_date_customjson.Marshal にて 独自の日付形式 を利用するサンプルです.
unmarshal_struct.gojson_unmarshal_structjson.Unmarshal() を利用したサンプルです.
unmarshal_slice.gojson_unmarshal_slicejson 配列 を json.Unmarshal した場合のサンプルです.
unmarshal_map.gojson_unmarshal_mapjson マップ を json.Unmarshal した場合のサンプルです.
unmarshal_date_rfc3339.gojson_unmarshal_date_rfc3339RFC3339形式の日付文字列 を json.Unmarshal した場合のサンプルです.
unmarshal_date_custom.gojson_unmarshal_date_custom独自の日付文字列 を json.Unmarshal した場合のサンプルです.
decoder.gojson_decoderjson.NewDecoder を使ったサンプルです.
encoder.gojson_encoderjson.Encoder を使ったサンプルです.
disallow_unknown_fields.gojson_disallow_unknown_fields*Decoder.DisallowUnknownFields のサンプルです。

# Packages

No description provided by the author

# Functions

Decoder は、json.NewDecoder を使ったサンプルです.
DisallowUnknownFields は、*Decoder.DisallowUnknownFields のサンプルです。 # REFERENCES - https://pkg.go.dev/encoding/[email protected]#Decoder.DisallowUnknownFields.
Encoder は、json.Encoder を使ったサンプルです.
MarshalDateCustom は、json.Marshal にて 独自の日付形式 を利用するサンプルです.
MarshalDateRfc3339 は、RFC3339形式の日付を json.Marshal するサンプルです.
MarshalIndent は、json.MarshalIndent() を利用したサンプルです.
MarshalMap は、json.Marshal() で マップ をマーシャルした場合のサンプルです.
MarshalNonIndent は、json.Marshal() を利用したサンプルです.
MarshalSlice は、json.Marshal() で スライス をマーシャルした場合のサンプルです.
No description provided by the author
UnmarshalDateCustom は、独自の日付文字列 を json.Unmarshal した場合のサンプルです.
UnmarshalDateRfc3339 は、RFC3339形式の日付文字列 を json.Unmarshal した場合のサンプルです.
UnmarshalMap は、json マップ を json.Unmarshal した場合のサンプルです.
UnmarshalSlice は、json 配列 を json.Unmarshal した場合のサンプルです.
UnmarshalStruct は、json.Unmarshal() を利用したサンプルです.