Giter Site home page Giter Site logo

Getting started w/ Go about vi-sense HOT 6 CLOSED

dephiloper avatar dephiloper commented on May 20, 2024
Getting started w/ Go

from vi-sense.

Comments (6)

RomanKrajewski avatar RomanKrajewski commented on May 20, 2024

Rest API mit Python vs Go

Vorteile von Python:

  • mehr libraries
  • Komplettpaket mit Django + Django Rest Framework
  • habe schon ein bisschen mit Django und relativ viel mit Python gearbeitet

Vorteile von Go:

  • Performanter
  • Skalierbarerer, dank concurrency features
  • man findet viele Artikel wie diesen hier: Why we switched from Python to Go , ich würde es deshalb schon gerne wenigstens mal ausprobieren

Insgesamt ist also Django die wahrscheinlich schneller zu Entwickelnde Lösung und Go die elegantere, schnellere Lösung, die dafür aber etwas mehr Vorbereitung und Einarbeitung erfordert.

from vi-sense.

RomanKrajewski avatar RomanKrajewski commented on May 20, 2024

haben uns jetzt für Go entschieden

from vi-sense.

moethu avatar moethu commented on May 20, 2024

Some Input on how to build a REST Service in Go

Gin-Gonic REST Framework

https://github.com/gin-gonic/gin
https://play.golang.org/p/Y0sDeUcLjv

REST Server

https://github.com/moethu/codenutrition/blob/master/main.go#L65
https://github.com/moethu/codenutrition/blob/master/main.go#L136-L145

Serving static files

https://github.com/moethu/codenutrition/blob/master/main.go#L61
https://github.com/moethu/codenutrition/blob/master/main.go#L100-L103

web sockets

https://github.com/moethu/webg3n/blob/master/main.go
https://github.com/moethu/webg3n/blob/master/server.go

JSON Responses

https://github.com/gin-gonic/examples/blob/master/basic/main.go#L22-L30

Testing in go

https://github.com/gin-gonic/examples/blob/master/basic/main_test.go

from vi-sense.

moethu avatar moethu commented on May 20, 2024

Go Project Layout

https://github.com/golang-standards/project-layout

Go Podcast

https://changelog.com/gotime

from vi-sense.

RomanKrajewski avatar RomanKrajewski commented on May 20, 2024

from Slack: minimal docker container

https://rollout.io/blog/building-minimal-docker-containers-for-go-applications/

another article covering that topic

https://medium.com/@diogok/on-golang-static-binaries-cross-compiling-and-plugins-1aed33499671

from vi-sense.

RomanKrajewski avatar RomanKrajewski commented on May 20, 2024

minimal docker image process is also explained in the official docker docs:

https://docs.docker.com/develop/develop-images/dockerfile_best-practices/

from vi-sense.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.