args

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 License: Apache-2.0 Imports: 3 Imported by: 2

README

args

A Go library for creating lightweight CLI wrappers.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal added in v0.3.0

func Marshal(opts any) []string

MarshalArgs marshals a struct into a slice of strings suitable for passing to a command line program. It's a very naive implementation that only supports a limited set of types.

Types

type ArgMarshaler added in v0.3.0

type ArgMarshaler interface {
	MarshalArg() string
}

Jump to

Keyboard shortcuts

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