age

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Youngest      string  `json:"youngest"`
	Oldest        string  `json:"oldest"`
	FirstSelected string  `json:"first_selected"`
	LastSelected  string  `json:"last_selected"`
	Ages          []Value `json:"ages"`
	CheckedRadio  string  `json:"checked_radio"`
	FormAction    Link    `json:"form_action"`
	HasAllAges    bool    `json:"has_all_ages"`
	AllAgesOption string  `json:"all_ages_option"`
}

Data represents the data for the age page

type Link struct {
	Label string `json:"label"`
	URL   string `json:"url"`
}

Link represents a link

type Page

type Page struct {
	model.Page
	Data     Data   `json:"data"`
	FilterID string `json:"filter_id"`
}

Page represents an age selection page

type Value

type Value struct {
	Label      string
	Option     string
	IsSelected bool
}

Value represents a single age value

Jump to

Keyboard shortcuts

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