tld

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 0 Imported by: 2

README

GolangCI Version Go Report Card Coverage Status Go Reference

go-tld

Minimalistic library for keeping up to date with TLD checks.

Installation

go get github.com/lawzava/go-tld

Usage

package main

import "github.com/lawzava/go-tld"

func main() {
	tld.IsValid("com") // true
	tld.IsValid("xir") // false
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValid

func IsValid(tld string) bool

IsValid checks whether the supplied request is valid tld.

Types

This section is empty.

Jump to

Keyboard shortcuts

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