cmdutil

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package cmdutil contains utilities for writing CLIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadJSONFile

func ReadJSONFile[T any](filename string, dst T) (T, error)

ReadJSONFile parses the JSON contents of a file into the destination argument and returns dst or an error.

func WriteJSONFile

func WriteJSONFile(filename string, value any) error

WriteJSONFile writes a value as JSON to a file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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