fileresolvers

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystem

type FileSystem struct {
	Prefix *string
}

FileSystem is a FileResolver that acts on the filesystem.

func (FileSystem) Create

func (f FileSystem) Create(n int, noVideo bool) (io.WriteCloser, error)

Create creates a new file in which you can save a beatmap.

func (FileSystem) Open

func (f FileSystem) Open(n int, noVideo bool) (io.ReadCloser, error)

Open opens a file of the mirror in the filesystem to read its content.

func (FileSystem) Resolve

func (f FileSystem) Resolve(n int, noVideo bool) string

Resolve resolves a file to a name.

Jump to

Keyboard shortcuts

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