command
Version:
v0.0.0-...-cf25b83
Opens a new window with list of versions in this module.
Published: Dec 22, 2021
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
json example
Encode a struct to json and decode back to a struct.
GitHub Webpage
ENCODE
Encodes json to a string from a struct.
- struct -> encode -> byte -> string
json.Marshal
encodes a struct to json data.
DECODE
Decodes json to a struct from a string.
- string -> byte -> decode -> struct
json.Unmarshal
decodes json data to a struct.
RUN
go run json.go
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.