pages

package
v0.0.0-...-e4c3281 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pages

type Pages struct {
	Name     string
	Platform platform.Platform
	// contains filtered or unexported fields
}

Pages provides the retrieval of the TLDR assets and repository pages.

func New

func New(name string, plat platform.Platform) *Pages

New creates a new Pages instance

func (*Pages) Body

func (p *Pages) Body() io.ReadCloser

Body returns the result of a http lookup from the main TLDR repository for a TLDR page that was not found in the local cache.

func (*Pages) Zip

func (p *Pages) Zip() io.ReadCloser

Zip returns the result of the downloaded TLDR pages zip file.

Jump to

Keyboard shortcuts

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