Skip to content

🖼 A Go-based command-line tool to convert images into Go byte slice files

Notifications You must be signed in to change notification settings

krzko/image-byte-slice-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image-byte-slice-gen

A Go-based command-line tool to convert images into Go byte slice files.

Usage

Run the utility with the -f flag followed by the path to the image file you want to convert:

image-byte-slice-gen -f path/to/your/image.png

This will generate a Go source file with the same name as the image file, containing a byte slice with the image data.

// image.go
package icon

var image = []byte{...}

About

🖼 A Go-based command-line tool to convert images into Go byte slice files

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages