split library & example

This commit is contained in:
6543
2021-02-02 02:43:02 +01:00
parent c02c75e2e3
commit fd3ef77fa6
2 changed files with 68 additions and 62 deletions

16
example/main.go Normal file
View 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]))
}