lib

package module
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 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 BytesToInt64 added in v0.12.0

func BytesToInt64(b []byte) int64

func BytesToTime added in v0.12.0

func BytesToTime(b []byte) time.Time

func ContainsOneOfStrings added in v0.12.0

func ContainsOneOfStrings(stack []string, needles []string) bool

ContainsOneOfStrings will return true if any of a group of strings is found in a given group of strings.

func ContainsString added in v0.12.0

func ContainsString(stack []string, needle string) bool

ContainsString will return true if a string is found in a given group of strings.

func Int64ToBytes added in v0.12.0

func Int64ToBytes(i int64) []byte

func SplitAccount

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

SplitAccount splits a federated account into a username and domain.

func TimeToBytes added in v0.12.0

func TimeToBytes(t time.Time) []byte

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