lib

package module
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: GPL-3.0 Imports: 4 Imported by: 7

README

go-lib

Shared Code for FediTools projects

Go Report Card codecov Crowdin License Release PkgGoDev

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidAccountFormat = errors.New("invalid account format")

ErrInvalidAccountFormat is returned when a federated account is in an invalid format.

Functions

func GetPaginationFromURL added in v0.8.0

func GetPaginationFromURL(u *url.URL, defaultCount int) (page int, count int, countFound bool)

GetPaginationFromURL returns a page and item count derived from the url query returns true if count is present in query.

func SplitAccount

func SplitAccount(act string) (username string, domain string, err error)

SplitAccount splits a federated account into a username and domain.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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