Documentation ¶
Index ¶
- func IsValidCoordinates(coordinates string) bool
- func ParseCoordinates(inputUrl string) (string, string)
- func ParseDistinction(distinction string) string
- func ParsePhoneNumber(inputPhoneNumber string) string
- func ParsePrice(inputPrice string) (string, string, string)
- func SplitUnpack(str string, separator string) (string, string)
- func TrimWhiteSpaces(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidCoordinates ¶
IsValidCoordinates checks if a string contains a valid longitude or latitude
func ParseCoordinates ¶
ParseCoordinates extracts and parses longitude and latitude from a Google Maps URL.
Example inputUrl: "https://www.google.com/maps/embed/v1/place?key=AIzaSyDvEyVCVpGtn81z5NrMKgdehPsrO9sJiMw&q=45.1712728,10.3565788&language=en-US"
func ParseDistinction ¶ added in v2.1.0
ParseDistinction parses the Michelin distinction based on the input string.
func ParsePhoneNumber ¶
ParsePhoneNumber extracts and parses phone number from a raw string
Example inputPhoneNumber: "+81 3-3874-1552"
func ParsePrice ¶
ParsePrice extracts and parses minPrice, maxPrice, and currency from a raw price string
Example inputPrice: "148-248 USD", "1,000-1,280 CNY"
func SplitUnpack ¶
SplitUnpack performs SplitN and unpacks a string
func TrimWhiteSpaces ¶
TrimWhiteSpaces trims whitespace character such as line breaks or double spaces
Types ¶
This section is empty.