()
| 28 | var targetFile = goopt.String([]string{"--target"}, "", "Save file path") |
| 29 | |
| 30 | func init() { |
| 31 | goopt.OptArg([]string{"-p", "--password"}, "", "Mysql password", getMariadbPassword) |
| 32 | //goopt.ReqArg([]string{"-u", "--user"}, "user", "user to connect to database", setUser) |
| 33 | |
| 34 | // Setup goopts |
| 35 | goopt.Description = func() string { |
| 36 | return "Mariadb http Check" |
| 37 | } |
| 38 | goopt.Version = "0.0.2" |
| 39 | goopt.Summary = "db2struct [-H] [-p] [-v] --package pkgName --struct structName --database databaseName --table tableName" |
| 40 | |
| 41 | //Parse options |
| 42 | goopt.Parse(nil) |
| 43 | |
| 44 | } |
| 45 | |
| 46 | func main() { |
| 47 |
nothing calls this directly
no outgoing calls
no test coverage detected