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

utils

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

pkg/utils/utils.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindComposeFile

func FindComposeFile(fileName string) (string, error)

FindComposeFile tries to find a compose file in the current directory

func FormatDuration

func FormatDuration(d time.Duration) string

FormatDuration formats a duration in a human-readable format

func FormatSize

func FormatSize(size int64) string

FormatSize formats a size in a human-readable format

func ParseEnvFile

func ParseEnvFile(filePath string) (map[string]string, error)

ParseEnvFile parses an environment file and returns a map of environment variables

Types

This section is empty.

Jump to

Keyboard shortcuts

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