alias

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add added in v0.10.1

func Add(url string, name string) error

Add alias if alias exists, overwrite url.

Types

type Map

type Map map[string]*Model

func ReadToMap

func ReadToMap() (Map, error)

type Model

type Model struct {
	Time int64  // created time
	Url  string // url
	Name string // alias name
	// contains filtered or unexported fields
}

func Read

func Read() ([]*Model, error)

func Remove added in v0.10.1

func Remove(name string) (*Model, error)

Remove alias

func (*Model) String

func (m *Model) String() string

Jump to

Keyboard shortcuts

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