golang-image-server

command module
v0.0.0-...-a473bf6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2025 License: GPL-2.0 Imports: 7 Imported by: 0

README

Image Server Written in Golang

Simple image server written in Golang using the Gin framework.

Run Gin Server

go run main.go

Build Binaries

For ARM-based macOS Apple Silicon:

env GOOS=darwin GOARCH=arm64 go build -o cdn_server_macos_arm64

For x86 Linux:

env GOOS=linux GOARCH=amd64 go build -o cdn_server_linux_amd64

For 64-bit Windows:

env GOOS=windows GOARCH=amd64 go build -o cdn_server_windows_amd64.exe

Usage

Make a cURL or Postman GET request like so to get image data:

curl -XGET "http://localhost:8282/cdn/test.jpeg"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL