-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go mod init simonwaldherr.de/go/golibs
go mod tidy
- Loading branch information
1 parent
5d72bfa
commit 15bb8aa
Showing
6 changed files
with
47 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
"simonwaldherr.de/go/golibs/arg" | ||
"time" | ||
) | ||
|
||
func main() { | ||
arg.StringArg("name1", "default", "enter string", time.Second*5) | ||
arg.StringArg("name2", "default", "enter string", time.Second*5) | ||
arg.StringArg("name3", "default", "enter string", time.Second*0) | ||
arg.Parse() | ||
fmt.Println("\ninput 1:", arg.Get("name1")) | ||
fmt.Println("\ninput 2:", arg.Get("name2")) | ||
fmt.Println("\ninput 3:", arg.Get("name3")) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module simonwaldherr.de/go/golibs | ||
|
||
// replace simonwaldherr.de/go/golibs => /Users/simonwaldherr/git/golibs | ||
|
||
go 1.16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters