commons

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsFinal

func IsFinal(url string) bool

IsFinal check if the url is a folder-like path, like example.com/path/

func IsInSlice

func IsInSlice(search string, array []string) bool

IsInSlice check if the given link is in a slice

func RemoveLastSlash

func RemoveLastSlash(url string) string

RemoveLastSlash removes the last slash

Types

type Conf

type Conf struct {
	// Root domain Root
	Root string

	// PATH Path where to save the website
	Path string
}

func New

func New(root, path string) Conf

Jump to

Keyboard shortcuts

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