🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

github.com/ethercod3/go-avatar

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/ethercod3/go-avatar

v0.0.8
Version published
Created

goAvatar

Go package for quick generation of random pixelized avatars

examples

Example usage

package main

import (
	"github.com/ethercod3/goAvatar"
	"log"
)

func main() {
	options := goAvatar.AvatarOptions{
		Dimensions: 5,
		FileSizePx: 500,
	}
	img := goAvatar.GenerateAvatar(options)
	file, err := os.Create("./avatar.png")
	if err != nil {
		log.Fatal(err)
	}
	png.Encode(file, img)
}

FAQs

Package last updated on 15 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts