detect

package
v0.0.0-...-6669b94 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: GPL-3.0 Imports: 8 Imported by: 1

Documentation

Overview

Package detect detects a customer's country options based on their Accept-Language and IP address.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Countries

func Countries(r *http.Request) ([]countries.Country, bool, error)

Countries returns all possible countries for a given HTTP request, based on the client's Accept-Language header and IP address.

The result is a slice of European Union countries and a boolean value which indicates "non-EU".

Types

This section is empty.

Jump to

Keyboard shortcuts

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