Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasNoError ¶ added in v0.9.0
func HasNoError(action func()) func() error
func HoldContext ¶ added in v0.9.0
func Must ¶
func Must(actions ...func() error)
Must execs the actions step by step and raises a panic with error and its stack trace if something went wrong.
func Configure(cmd *cobra.Command) { fn.Must( func() error { return cmd.MarkFlagRequired("file") }, func() error { return cmd.MarkFlagRequired("format") }, ) }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.