srl

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SRL

type SRL [srlLength]string

SRL stands for Simple Resource Locator, A 3 part address.

func New

func New(storage, path, id string) SRL

New creates a SRL of path & id on a specific storage.

func Parse

func Parse(str string) SRL

func Portable

func Portable(path, id string) SRL

Portable creates a SRL of path & id on unspecific storage.

func Storage

func Storage(storage string) SRL

Storage creates a SRL without any path & id on a specific storage.

func (SRL) Append

func (q SRL) Append(src SRL) SRL

Append returns a new SRL with non-empty fields of src appended to it. It joins paths if available on both q & src with pathGlue

func (SRL) ID

func (q SRL) ID() string

func (SRL) Merge

func (q SRL) Merge(src SRL) SRL

Merge returns a new SRL with fields replaced by non-empty src fields.

func (SRL) Path

func (q SRL) Path() string

func (SRL) Replace

func (q SRL) Replace(src SRL) SRL

Replace returns a new SRL with all fields replaced by src fields.

func (SRL) Storage

func (q SRL) Storage() string

func (SRL) String

func (q SRL) String() string

Jump to

Keyboard shortcuts

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