config

package
v0.0.0-...-dd9b50b Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUrl

func AddUrl(name string, url string) error

func DeleteURL

func DeleteURL(name string) error

func EditURL

func EditURL(name, newName, newURL string) error

func GetDB

func GetDB() *sql.DB

func InitializeDB

func InitializeDB()

func IsValidUrl

func IsValidUrl(input string) bool

func OpenUrlInBrowser

func OpenUrlInBrowser(url string)

Types

type Url

type Url struct {
	ID   int
	Name string
	Url  string
}

func GetSelectedUrl

func GetSelectedUrl() (Url, error)

func GetUrl

func GetUrl(name string) (Url, error)

func GetUrls

func GetUrls() []Url

Jump to

Keyboard shortcuts

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