define

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Person    `yaml:"Person"`
	Contact   `yaml:"Contact"`
	Education `yaml:"Education"`
	Inline    `yaml:"Inline,inline"` //use ",inline" read simple configuration's value.
	InlineAdd `yaml:"InlineAdd,inline"`
}

type Contact

type Contact struct {
	Tel   int64    `yaml:"Telephone"`
	Phone int32    `yaml:"Phone"`
	QQ    int64    `yaml:"QQ"`
	WX    string   `yaml:"Wei_xin"`
	EMail []string `yaml:"E-mail"`
}

type Education

type Education struct {
	Primary School `yaml:"Primary"`
	Junior  School `yaml:"Junior"`
	Senior  School `yaml:"Senior"`
	Collage School `yaml:"Collage"`
}

type Inline

type Inline struct {
	NativePlace     string   `yaml:"Native_place"`
	PliticalOutlook string   `yaml:"Political_outlook"`
	MaritalStatus   string   `yaml:"Marital_status"`
	Hobby           []string `yaml:"Hobby,flow"`       //"flow" shows in array .
	ForeignLanguage []string `yaml:"Foreign_language"` //without flow shows in several lines begin with "-".
	AwardsReceived  string   `yaml:"Awards_received"`
}

simple configuration item.

type InlineAdd

type InlineAdd struct {
	Height int `yaml:"Height_cm"`
	Heavy  int `yaml:"Heavy_kg"`
}

type Name

type Name struct {
	CName string `yaml:"Chinese_name"`
	EName string `yaml:"English_name"`
}

type Person

type Person struct {
	Name `yaml:"Name"`
	Sex  string `yaml:"Sex"`
	Age  int    `yaml:"Age"`
	IDCN int64  `yaml:"ID_card_number"`
}

complex configuration item which has lower level tags.

type School

type School struct {
	SName string `yaml:"School_name"`
	SDate string `yaml:"Start_date"`
	EDate string `yaml:"End_date"`
}

Jump to

Keyboard shortcuts

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