myschema

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type EmployeeJson

type EmployeeJson struct {
	ID      int    `json:"id"`
	Name    string `json:"name"`
	Age     int    `json:"age"`
	Hobbies struct {
		Indoor  []string `json:"indoor"`
		Outdoor []string `json:"outdoor"`
	} `json:"hobbies"`
}

https://mholt.github.io/json-to-go

type EmployeeYaml

type EmployeeYaml struct {
	ID      int    `yaml:"id"`
	Name    string `yaml:"name"`
	Age     int    `yaml:"age"`
	Hobbies struct {
		Indoor  []string `yaml:"indoor"`
		Outdoor []string `yaml:"outdoor"`
	} `yaml:"hobbies"`
}

https://zhwt.github.io/yaml-to-go

Jump to

Keyboard shortcuts

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