Moving go code to subdir.
This commit is contained in:
15
code/functions/flagcheck.go
Normal file
15
code/functions/flagcheck.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package functions
|
||||
|
||||
import (
|
||||
"flag"
|
||||
)
|
||||
|
||||
func FlagSet(name string) (found bool) {
|
||||
found = false
|
||||
flag.Visit(func (f *flag.Flag) {
|
||||
if f.Name == name {
|
||||
found = true
|
||||
}
|
||||
})
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user