Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 0 additions & 33 deletions day1/lab1/lotsOfFunctions.go
Original file line number Diff line number Diff line change
@@ -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)
}
}