mech

package module
v1.39.7 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: OSL-3.0 Imports: 7 Imported by: 11

README

Mech

Listen, um, I don’t really know what’s going on here, but I’m leaving. I don’t know where exactly, but I’m gonna start over.

Come with me.

Paint it Black (2016)

Download media or send API requests

Some users might want to make anonymous requests, because of privacy or any number of other reasons. This module allows people to do that. Most API these days only offically support authenticated access. This is useful for the company providing the API, as they can use the data for their own purposes (analytics etc). However authentication really doesnt do anything for the end user. Its just a pointless burden to getting the information you need for a program you may be writing. Consider that in many cases, the same information is available via HTML on the primary website, usually without being logged in. So why can you do that with HTML, but not with the API? Well you can, using this module.

https://godocs.io/github.com/89z/mech

How to build?

Check here first:

https://github.com/89z/mech/releases

I dont do a build for every tag, but some tags will have builds available. If you need a newer build, and cant build yourself for some reason, comment on this thread:

https://github.com/89z/mech/issues/7

To build yourself, download Go from here:

https://golang.org/dl

and extract archive. Then download Mech:

https://github.com/89z/mech/archive/refs/heads/master.zip

and extract archive. Then navigate to mech-master/cmd/youtube, and enter:

go build

Author

srpen6@gmail.com

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Verbose bool

Functions

func Clean added in v1.30.3

func Clean(r rune) rune

func Compare added in v1.39.4

func Compare(a, b int) int

func ExtensionByType added in v1.39.7

func ExtensionByType(typ string) (string, error)

github.com/golang/go/issues/22318

func NumberFormat added in v1.37.6

func NumberFormat(val float64, metric []string) string

func Percent added in v1.37.6

func Percent(pos, length int64) string

func RoundTrip added in v1.33.2

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

Types

type NotFound added in v1.37.5

type NotFound struct {
	Input interface{}
}

func (NotFound) Error added in v1.37.5

func (n NotFound) Error() string

type Progress added in v1.39.3

type Progress struct {
	*http.Response
	// contains filtered or unexported fields
}

func NewProgress added in v1.39.3

func NewProgress(res *http.Response) *Progress

func (*Progress) Read added in v1.39.3

func (p *Progress) Read(buf []byte) (int, error)

Jump to

Keyboard shortcuts

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