diff options
Diffstat (limited to 'vendor/0xacab.org/leap/go-dialog/util.go')
-rw-r--r-- | vendor/0xacab.org/leap/go-dialog/util.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/0xacab.org/leap/go-dialog/util.go b/vendor/0xacab.org/leap/go-dialog/util.go new file mode 100644 index 0000000..28126ee --- /dev/null +++ b/vendor/0xacab.org/leap/go-dialog/util.go @@ -0,0 +1,10 @@ +package dialog + +func firstOf(args ...string) string { + for _, arg := range args { + if arg != "" { + return arg + } + } + return "" +} |