flags

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindFlagsByQuery

func BindFlagsByQuery(cmd *cobra.Command, obj interface{}) error

BindFlagsByQuery bind flags to query, the query support basic types, and support `validate:"required"` obj must be a struct. nolint: exhaustive // TODO

func FillQueryByFlags

func FillQueryByFlags(cmd *cobra.Command, obj interface{}) error

FillQueryByFlags fill struct by cmd query obj must be a pointer. nolint: exhaustive // TODO

Types

This section is empty.

Jump to

Keyboard shortcuts

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