menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Go

Go Language Spectrum

Channels
Team

First steps with Go

February 17, 2018 at 12:22am

First steps with Go

February 17, 2018 at 12:22am (Edited 4 years ago)
Went on my first steps with Go today.
What I managed to do so far:
  • Create a tiny webserver using Gin
  • Create a POST route
  • Parse incoming JSON ({"image": <base64>})
  • Read base64 into buffer
  • Feed buffer to Discord's Lilliput image processing library
  • Transform the image to a 256px version
  • Upload the image to AWS S3
It was surprisingly easy to do, whatever I didn't know I googled :D
Resources:

March 9, 2018 at 9:06pm
Nice! I love Go for creating APIs.
like-fill
3