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

utils

package
v1.228.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseDurationFlexible added in v1.197.0

func ParseDurationFlexible(durationStr string) (int64, error)

ParseDurationFlexible parses a duration string in multiple formats: 1. Integer (treated as seconds): "3600" = 1 hour 2. Go duration format (supports combinations): "1h30m", "90m", "5400s" = 1.5 hours 3. Simple suffix for days (not supported by Go): "2d" = 2 days Returns duration in seconds, or error if invalid.

func SetEnvironmentVariable

func SetEnvironmentVariable(stackInfo *schema.ConfigAndStacksInfo, key, value string)

SetEnvironmentVariable appends an environment variable to the stack info map/list.

Types

This section is empty.

Jump to

Keyboard shortcuts

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