common

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RelPath

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

RelPath represents a relative path. It interprets the inner path as if it did not have a trailing slash.

func NewRelPath

func NewRelPath(str string) RelPath

NewRelPath creates a new RelPath from a string. Leading slashes on the string will simply be ignored.

func (RelPath) Path

func (r RelPath) Path() key.Path

func (RelPath) String

func (r RelPath) String() string

String returns the string representation of the RelPath. An empty path returns an empty string.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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