support

package
v0.0.0-...-9034458 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenBrowser

func OpenBrowser(uri string)

From Miki Tebeka: Open calls the OS default program for uri http://go-wise.blogspot.com/2012/04/open-fileurls-with-default-program.html

Types

type FilePattern

type FilePattern struct {
	// contains filtered or unexported fields
}

func Dir

func Dir(pattern string) FilePattern

Dir generates a FilePattern for use with ServeMux

func RenameDir

func RenameDir(pattern, directory string) FilePattern

RenameDir generates a FilePattern for use with ServeMux

type FileSaver

type FileSaver struct {
	// contains filtered or unexported fields
}

FileSaver implements MemSaver maybe add a file location?

func NewFileSaver

func NewFileSaver(spath string) *FileSaver

saves:= "alice"

func (*FileSaver) LoadBlob

func (s *FileSaver) LoadBlob(slot string) (ret mem.SaveGameBlob, err error)

func (*FileSaver) SaveBlob

func (s *FileSaver) SaveBlob(loc string, b mem.SaveGameBlob) (slot string, err error)

SaveBlob(slot string, blob SaveGameBlob) error

type ServeMux

type ServeMux struct {
	*http.ServeMux
}

ServeMux extends http.ServeMux to provide additional functionality.

func NewServeMux

func NewServeMux() ServeMux

NewServeMux extends http.NewServeMux to provide additional functionality.

func (ServeMux) HandleFilePatterns

func (mux ServeMux) HandleFilePatterns(root string, fpats ...FilePattern)

HandleFilePatterns creates a http.FileSystem for the passed root path, and associates it with the passed FilePatterns.

func (ServeMux) HandleText

func (mux ServeMux) HandleText(pattern, text string)

HandleText associates a static block of text with the passed url pattern.

Jump to

Keyboard shortcuts

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