pathconfig

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PathConfig

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

PathConfig holds the canonical base path and an optional current path field to be used by the appropriate party i.e the templating package

func NewConfig

func NewConfig(basePath string) *PathConfig

NewConfig creates and returns the address of a new config object

func (*PathConfig) GetBasePath

func (c *PathConfig) GetBasePath() string

GetBasePath returns the specified base path

func (*PathConfig) GetCurrentPath

func (c *PathConfig) GetCurrentPath() string

GetCurrentPath returns the specified current path; "" if none is specified

func (*PathConfig) SetCurrentPath

func (c *PathConfig) SetCurrentPath(currentPath string)

SetCurrentPath sets the specified current path

Jump to

Keyboard shortcuts

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