Last active
September 14, 2020 17:17
-
-
Save nleiva/07cdfe0e88076c8ae6db2d3eca731f84 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// ModuleArgs are the module inputs | |
type ModuleArgs struct { | |
Time string | |
} | |
func main() { | |
... | |
argsFile := os.Args[1] | |
text, err := ioutil.ReadFile(argsFile) | |
... | |
var moduleArgs ModuleArgs | |
err = json.Unmarshal(text, &moduleArgs) | |
... | |
busy, err := isItBusy(moduleArg.time) | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment