location

package
v0.29.5 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

The location package implements a location queue built on top of the session service. You can use it to keep track of the path a user took to get to a particular location, and then allow that user to back out of that path. This is helpful in situations where there are multiple paths to get to a page, but the user presses a Save or Cancel button indicating the user wants to go back to whatever location they were previously at.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear(ctx context.Context)

Clear removes all locations from the location stack

func Pop

func Pop(ctx context.Context) (loc string)

Pop pops the given location off of the location stack and returns it.

func Push

func Push(ctx context.Context, loc string)

Push pushes the given location onto the location stack.

Types

This section is empty.

Jump to

Keyboard shortcuts

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