paths

package
v0.99.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetModule

func GetModule(c buffalo.Context) (string, error)

GetModule gets the module from the path of a ?go-get=1 request

func IsGoGet

func IsGoGet(u *url.URL) bool

IsGoGet returns true if u has ?go-get=1 in its query string

Types

type AllPathParams

type AllPathParams struct {
	Module  string
	Version string
}

AllPathParams holds the module and version in the path of a ?go-get=1 request

func GetAllParams

func GetAllParams(c buffalo.Context) (*AllPathParams, error)

GetAllParams fetches the path patams from c and returns them

Jump to

Keyboard shortcuts

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