inputs

package module
v0.0.0-...-8670cf6 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2021 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

go-githubactions-inputs

Decode GitHub Actions input strings into Go types

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(name string) bool

Bool returns true if the input value is true, case-insensitive

func Float64

func Float64(name string) (float64, error)

Float64 returns the input value as a float64

func Float64Slice

func Float64Slice(name string) ([]float64, error)

Float64Slice returns the input value as a slice of float64s, splitting on commas. If any entry is not a float, an error is returned.

func Int

func Int(name string) (int, error)

Int returns the input value as an integer

func Int64

func Int64(name string) (int64, error)

Int64 returns the input value as an int64

func Int64Slice

func Int64Slice(name string) ([]int64, error)

Int64Slice returns the input value as a slice of int64s, splitting on commas. If any entry is not an integer, an error is returned.

func IntSlice

func IntSlice(name string) ([]int, error)

IntSlice returns the input value as a slice of ints, splitting on commas. If any entry is not an integer, an error is returned.

func String

func String(name string) string

String returns the input value as a string. It is the same as calling githubactions.GetInput and is provided for consistency/convenience.

func StringSlice

func StringSlice(name string) []string

StringSlice returns the input value as a slice of strings, splitting on commas. Each entry is stripped of leading and trailing whitespace.

Types

This section is empty.

Jump to

Keyboard shortcuts

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