location

package
v0.0.0-...-ae75a06 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const (
	LocationErrorInvalidCountryCode = iota // 0
	LocationErrorInvalidCityCode           // 1
)

Variables

This section is empty.

Functions

func LocationsGetCountries

func LocationsGetCountries(c echo.Context) error

LocationsGetCountries displays all available location in Tania

Types

type Country

type Country struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

Country is country

type Error

type Error struct {
	// contains filtered or unexported fields
}

Error is a custom error from Go built-in error

func (Error) Error

func (e Error) Error() string

type Server

type Server struct{}

func NewServer

func NewServer() (*Server, error)

func (*Server) Mount

func (s *Server) Mount(g *echo.Group)

Jump to

Keyboard shortcuts

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