Help us shape the future of Go! Take the 2026 Go Developer Survey

validation

package
v0.4.74 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateCompressionFlag

func ValidateCompressionFlag(compression string) error

ValidateCompressionFlag checks if the --compression flag has a valid value. This can be "gzip" (soon to be legacy) or "zstd" (what we'd like to be the default)

func ValidateCompressionLevelFlag

func ValidateCompressionLevelFlag(level int) error

ValidateCompressionLevelFlag checks if the --compression-level flag has a value between 0 and 9. This is what is currently supported by Depot Builder (they map these to proper zstd compression levels)

Types

This section is empty.

Jump to

Keyboard shortcuts

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