specification

package
v0.0.0-...-f6ee7dd Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Tablet = "Tablet"
	Phone  = "Phone"
)
View Source
const BaseEndpoint = "http://www.gsmarena.com/"

Variables

This section is empty.

Functions

This section is empty.

Types

type Specification

type Specification struct {
	Brand      string                `json:"brand,omitempty"`
	DeviceName string                `json:"device_name,omitempty"`
	DeviceType string                `json:"device_type,omitempty"`
	ImageURL   string                `json:"image_url,omitempty"`
	Overview   SpecificationOverview `json:"overview,omitempty"`
	Detail     SpecificationDetail   `json:"detail,omitempty"`
}

func GetSpecification

func GetSpecification(slug string) (specification Specification, err error)

type SpecificationDetail

type SpecificationDetail map[string]map[string]interface{}

type SpecificationOverview

type SpecificationOverview struct {
	GeneralInfo SpecificationOverviewGeneralInfo `json:"general_info,omitempty"`
	Display     SpecificationOverviewDisplay     `json:"display,omitempty"`
	Camera      SpecificationOverviewCamera      `json:"camera,omitempty"`
	Expansion   SpecificationOverviewExpansion   `json:"expansion,omitempty"`
	Battery     SpecificationOverviewBattery     `json:"battery,omitempty"`
}

type SpecificationOverviewBattery

type SpecificationOverviewBattery struct {
	Capacity   string `json:"capacity,omitempty"`
	Technology string `json:"technology,omitempty"`
}

type SpecificationOverviewCamera

type SpecificationOverviewCamera struct {
	Photo string `json:"photo,omitempty"`
	Video string `json:"video,omitempty"`
}

type SpecificationOverviewDisplay

type SpecificationOverviewDisplay struct {
	Touchscreen string `json:"touchscreen,omitempty"`
	Size        string `json:"size,omitempty"`
	Resolution  string `json:"resolution,omitempty"`
}

type SpecificationOverviewExpansion

type SpecificationOverviewExpansion struct {
	RAM     string `json:"ram,omitempty"`
	Chipset string `json:"chipset,omitempty"`
}

type SpecificationOverviewGeneralInfo

type SpecificationOverviewGeneralInfo struct {
	Launched string `json:"launched,omitempty"`
	Body     string `json:"body,omitempty"`
	OS       string `json:"os,omitempty"`
	Storage  string `json:"storage,omitempty"`
}

type SpecificationOverviewPopularity

type SpecificationOverviewPopularity struct {
	Percentage string `json:"percentage,omitempty"`
	Hits       string `json:"hits,omitempty"`
}

Jump to

Keyboard shortcuts

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