data

package
v0.0.0-...-ddd6031 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2016 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SampleData = Data{
	Persons: []Person{
		Person{
			FirstName: "Liam",
			LastName:  "Neeson",
			Age:       64,
		},
		Person{
			FirstName: "Tom",
			LastName:  "Cruise",
			Age:       53,
		},
		Person{
			FirstName: "Conan",
			LastName:  "O'Brien",
			Age:       52,
		},
	},
	SocialNetworks: []SocialNetwork{
		SocialNetwork{
			Name: "Twitter",
			URL:  "https://www.twitter.com",
		},
		SocialNetwork{
			Name: "Facebook",
			URL:  "https://www.facebook.com/",
		},
	},
	Variables: Variables{
		StrValue:  "Some text",
		IntValue:  1997,
		BoolValue: false,
	},
}

Functions

This section is empty.

Types

type Data

type Data struct {
	Persons        []Person
	SocialNetworks []SocialNetwork
	Variables      Variables
}

type Person

type Person struct {
	FirstName string
	LastName  string
	Age       int
}

type SocialNetwork

type SocialNetwork struct {
	Name string
	URL  string
}

type Variables

type Variables struct {
	StrValue  string
	IntValue  int
	BoolValue bool
}

Jump to

Keyboard shortcuts

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