Version: v0.17.2 Latest Latest

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 2 Imported by: 0



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.



This section is empty.


This section is empty.


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.


This section is empty.

Source Files

Jump to

Keyboard shortcuts

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