urltable

package module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: MIT Imports: 3 Imported by: 0

README

urltable

a table to store and mapping url

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format added in v0.1.2

func Format(pattern string) (string, error)

Format pattern

Types

type Table

type Table struct {
	// contains filtered or unexported fields
}

Table a (thread unsafe) table to store urls

func NewTable

func NewTable() *Table

NewTable create a table

func (*Table) Append

func (t *Table) Append(pattern string) error

Append pattern

func (*Table) Mapping

func (t *Table) Mapping(url string) (string, error)

Mapping url to pattern

func (*Table) Size

func (t *Table) Size() int

Size contains how many urls

Jump to

Keyboard shortcuts

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