archiveformats

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Format

type Format int

Format represents the type of archive.

const (
	InvalidFormat Format = iota
	Deb
	TarGz
	Zip
	Rename
	Plugin // Plugin is a special format that is used to indicate that the archive operation is handled by an external tool.
)

Goreleaser supports `tar.gz`, `tar.xz`, `tar`, `gz`, `zip` and `binary`. We currently limit ourselves to what Hugo uses: `tar.gz` and 'zip' (for Windows).

func MustParse

func MustParse(s string) Format

MustParse parses a string into a Format and panics if it fails.

func Parse

func Parse(s string) (Format, error)

Parse parses a string into a Format.

func (Format) String

func (f Format) String() string

Jump to

Keyboard shortcuts

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