From 319c511128aadbb1047270413800d34ebaff7dd2 Mon Sep 17 00:00:00 2001 From: Mihalis Tsoukalos Date: Thu, 25 Oct 2018 11:26:21 +0300 Subject: [PATCH] Revert "Sample use of Flag" --- day1/lab1/lotsOfFunctions.go | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/day1/lab1/lotsOfFunctions.go b/day1/lab1/lotsOfFunctions.go index 257fcfc..e69de29 100644 --- a/day1/lab1/lotsOfFunctions.go +++ b/day1/lab1/lotsOfFunctions.go @@ -1,33 +0,0 @@ -//Jeffry M - -// Create a Go program that uses flag with the following command line -// parameters: -// - A boolean named subdirs. - An integer named count. -// - A string named name. -// - A float named limit. - -package main - -import ( - "flag" - "fmt" -) - -func main() { - - subdirs := flag.Bool("s", false, "subdirectory") - count := flag.Int("c", 0, "int") - name := flag.String("n", "test", "string") - limit := flag.Float64("l", 12312.4, "float64") - - flag.Parse() - - fmt.Println("-s:", *subdirs) - fmt.Println("-c:", *count) - fmt.Println("-n:", *name) - fmt.Println("-l:", *limit) - - for index, val := range flag.Args() { - fmt.Println(index, ":", val) - } -}