restructure project, add claudemd
This commit is contained in:
23
go/cmd/passgen/main.go
Normal file
23
go/cmd/passgen/main.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
|
||||
"kjol/appenv"
|
||||
"kjol/security"
|
||||
)
|
||||
|
||||
func main() {
|
||||
if len(os.Args) == 2 {
|
||||
passHash, _ := security.HashPassword(os.Args[1])
|
||||
|
||||
println(passHash)
|
||||
} else {
|
||||
println("Please input a password as first program argument")
|
||||
}
|
||||
|
||||
if appenv.Environment == appenv.EnvTypeDevelopment {
|
||||
log.Printf("log message")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user