shortener

package
v0.11.10 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shortener

type Shortener struct {
	config.ShortenerConfig
}

Shortener is an URL shortener instance.

func NewShortener

func NewShortener(c *config.ShortenerConfig) (*Shortener, error)

NewShortener creates a new URL shortener instance.

func (*Shortener) Shorten

func (s *Shortener) Shorten(long *url.URL) (*url.URL, error)

Shorten shorten a passed long URL into a short one using the shortener service.

Jump to

Keyboard shortcuts

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