mirror of
https://codeberg.org/Codeberg/avatars.git
synced 2023-08-10 21:12:50 +03:00
split library & example
This commit is contained in:
16
example/main.go
Normal file
16
example/main.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"codeberg.org/Codeberg/avatars"
|
||||
)
|
||||
|
||||
func main() {
|
||||
if len(os.Args) < 2 {
|
||||
fmt.Println("please specify a seed string")
|
||||
return
|
||||
}
|
||||
fmt.Println(avatars.MakeAvatar(os.Args[1]))
|
||||
}
|
||||
Reference in New Issue
Block a user