mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-11 10:34:27 +00:00
18 lines
298 B
Go
Executable File
18 lines
298 B
Go
Executable File
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"go.m3o.com/password"
|
|
)
|
|
|
|
// Generate a strong random password
|
|
func main() {
|
|
passwordService := password.NewPasswordService(os.Getenv("M3O_API_TOKEN"))
|
|
rsp, err := passwordService.Generate(&password.GenerateRequest{
|
|
Length: 16,
|
|
})
|
|
fmt.Println(rsp, err)
|
|
}
|