diff options
author | xengineering <me@xengineering.eu> | 2022-03-16 20:54:19 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2022-03-17 09:38:08 +0100 |
commit | 77901bb05dbf75e92dd8974ccb23053bb3b2dabf (patch) | |
tree | 386cfb941cb338d82ea607f28334705ce4c9d83e /main.go | |
parent | 8742e1207eb12091eeb061485072dcc2d70c0a52 (diff) | |
download | stlscope-77901bb05dbf75e92dd8974ccb23053bb3b2dabf.tar stlscope-77901bb05dbf75e92dd8974ccb23053bb3b2dabf.tar.zst stlscope-77901bb05dbf75e92dd8974ccb23053bb3b2dabf.zip |
Add docstrings
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,5 +1,7 @@ // vim: shiftwidth=4 tabstop=4 noexpandtab +// stlscope is a file viewer for the STL file format. It is based on Go +// and OpenGL. package main import ( @@ -9,11 +11,13 @@ import ( "io/ioutil" ) +// cliArgs contains all data given via command line arguments. type cliArgs struct { filePath string debugOutput bool } +// main represents the whole functionality of stlscope. func main() { // read command line arguments and mute log if necessary @@ -50,6 +54,7 @@ func main() { } } +// read reads the command line arguments given to stlscope to a cliArgs struct. func (args *cliArgs) read() { flag.BoolVar(&args.debugOutput, "debug", false, "enable to print log output") |