urltable

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

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