yourls

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type YOURLSClient

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

Wrapper for YOURLS API (basic)

func NewClient

func NewClient(dir string, debug bool, cfg *environment.EnvConfig) *YOURLSClient

NewClient creates a new YOURLSClient

func (*YOURLSClient) ShortenURL

func (c *YOURLSClient) ShortenURL(ctx context.Context, input string) (string, error)

ShortenURL shortens a URL via YOURLS

Jump to

Keyboard shortcuts

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