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 69e6f82473 Add support for optional arguments (#538)
add support for optional args
2026-03-07 19:51:18 -05:00

19 lines
353 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) {}