1
0
mirror of https://github.com/magefile/mage.git synced 2026-10-24 06:19:18 +03:00
Files
mage/parse/testdata/optargs.go
Nate Finch 88c49b7253 support for inline doc comments on optional flags (#549)
support for inline doc comments on optional flags
2026-03-29 10:05:44 -04:00

25 lines
464 B
Go

//go:build mage
// +build mage
package main
import "time"
func OptionalString(name string, greeting *string) {}
func OptionalInt(a int, b *int) {}
func OptionalFloat64(value float64, factor *float64) {}
func OptionalBool(verbose *bool) {}
func OptionalDuration(base time.Duration, extra *time.Duration) {}
func AllOptional(a *string, b *int) {}
func FlagDocFunc(name string,
greeting *string, // the greeting message
count *int, // how many times
) {
}