application

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func URL

func URL(code string) (string, map[string]string)

URL to page with name

func URLWithName

func URLWithName(code, name string) (string, map[string]string)

URLWithName points to a category with a given name

Types

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

BreadcrumbService struct

func (bs *BreadcrumbService) AddBreadcrumb(ctx context.Context, tree domain.Tree)

AddBreadcrumb - add a breadcrumb based on a root category

func (bs *BreadcrumbService) Inject(router RouterRouter)

Inject required dependencies

type RouterRouter

type RouterRouter interface {
	URL(name string, params map[string]string) (*url.URL, error)
}

RouterRouter defines a interface for testing

Jump to

Keyboard shortcuts

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