text

package module
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: OSL-3.0 Imports: 9 Imported by: 2

README

log

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultName = "{{if .Show}}" +
	"{{if .Season}}" +
	"{{.Show}} - {{.Season}} {{.Episode}} - {{.Title}}" +
	"{{else}}" +
	"{{.Show}} - {{.Title}}" +
	"{{end}}" +
	"{{else}}" +
	"{{if .Year}}" +
	"{{.Title}} - {{.Year}}" +
	"{{else}}" +
	"{{.Title}}" +
	"{{end}}" +
	"{{end}}"
View Source
var DefaultTransport = http.DefaultTransport

Functions

func Clean

func Clean(s string) string

func CutBefore

func CutBefore(s, sep []byte) ([]byte, []byte, bool)

func Name

func Name(n Namer) (string, error)

Types

type Cardinal

type Cardinal float64

func (Cardinal) String

func (c Cardinal) String() string

type Namer

type Namer interface {
	Show() string
	Season() int
	Episode() int
	Title() string
	Year() int
}

type Percent

type Percent float64

func (Percent) String

func (p Percent) String() string

type ProgressMeter

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

func (*ProgressMeter) Reader

func (p *ProgressMeter) Reader(resp *http.Response) io.Reader

func (*ProgressMeter) Set

func (p *ProgressMeter) Set(parts int)

func (*ProgressMeter) Write

func (p *ProgressMeter) Write(data []byte) (int, error)

type Rate

type Rate float64

func (Rate) String

func (r Rate) String() string

type Size

type Size float64

func (Size) String

func (s Size) String() string

type Transport

type Transport struct{}

func (Transport) RoundTrip

func (Transport) RoundTrip(req *http.Request) (*http.Response, error)

func (Transport) Set

func (Transport) Set(on bool)

Jump to

Keyboard shortcuts

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