asics_parser

package
v0.0.0-...-041e57c Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WirteDir       = ""
	NoEcAsicsLocal = map[string]string{"www.asics.fi": "en-fi", "www.asics.pl": "pl-pl",
		"www.asics.pt": "pt-pt", "en.asics.ch": "en-ch", "fr.asics.ch": "fr-ch",
		"de.asics.ch": "de-ch", "www.asics.ru": "ru-ru",
		"www.asics.co.za": "en-za", "www.asics.com.hk": "en-hk", "www.asics.com.cn": "zh-cn",
		"www.asics.com.sg": "en-sg", "www.asicsindia.in": "en-in",
	}
)
View Source
var AllData = map[string]ParseData{}
View Source
var EuropeEcAsics []string
View Source
var NoEcAsics []string

Functions

func ParseECHtml

func ParseECHtml(url_string string)

func ParseFile

func ParseFile(dir string) map[string]ParseData

func ParseNoECHtml

func ParseNoECHtml(url_string string)

Types

type ItemLink struct {
	Title   string
	Url     string
	Name    string
	Index   int
	Img     string `json:"Img,omitempty"`
	ImgSize string `json:"ImgSize,omitempty"`
}
type Link struct {
	Title   string
	Url     string
	Name    string
	Index   int
	Img     string `json:"Img,omitempty"`
	ImgSize string `json:"ImgSize,omitempty"`
	//the value of imgsize represent the type of the image, small | medium | big
	SingleRow bool
	//when the value of SingleRow is false, there will have two link in a row.
	Items []interface{}
}

type ParseData

type ParseData struct {
	Locale string
	Header []Link
	Footer []Link
}

Jump to

Keyboard shortcuts

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