Help us shape the future of Go! Take the 2026 Go Developer Survey

pathvars

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2018 License: GPL-3.0, GPL-3.0-or-later Imports: 5 Imported by: 4

Documentation

Overview

Package pathvars offers pathvars names and pathvars extract functions.

Index

Constants

View Source
const (
	// ProjectID pathvar: /projects/{ProjectID}
	ProjectID = "projectId"

	// VersionID pathvar: /projects/{ProjectID}/versions/{VersionID}
	VersionID = "versionId"
)

Variables

This section is empty.

Functions

func ExtractProjectID

func ExtractProjectID(r *http.Request) (bson.ObjectId, bool)

ExtractProjectID return extracted projectID from routes variables.

func ExtractVersionID

func ExtractVersionID(r *http.Request) (project.VersionID, bool)

ExtractVersionID return extracted versionId from routes variables.

Types

This section is empty.

Jump to

Keyboard shortcuts

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