Documentation
¶
Index ¶
Constants ¶
View Source
const ( OSWindows = OS("WINDOWS") OSDarwin = OS("DARWIN") OSLinux = OS("LINUX") OSEmpty = OS("") )
OS enumerated values
Variables ¶
This section is empty.
Functions ¶
func Download ¶
func Download(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
Download handles resolving the latest GitHub release for the given request and either redirecting the download request to that URL or unpacking the binary and writing it into the response if specified
func Home ¶
func Home(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
Home is the index handler that simply returns the homeMessage HTML above
Types ¶
type DownloadOptions ¶
DownloadOptions represents various options that can be supplied to the download endpoint
Click to show internal directories.
Click to hide internal directories.