cleaning up, early http server draft

This commit is contained in:
2026-01-24 09:39:27 +03:00
parent d52658ab5c
commit cc5c9c6d1a
23 changed files with 123 additions and 0 deletions

20
util/util.go Normal file
View File

@@ -0,0 +1,20 @@
package imageutils
import (
"image"
"image/color"
)
type SinglePixel struct{}
func (s SinglePixel) At(x, y int) color.Color {
return color.White
}
func (s SinglePixel) ColorModel() color.Model {
return color.RGBAModel
}
func (s SinglePixel) Bounds() image.Rectangle {
return image.Rect(0, 0, 1, 1)
}