Web TippsUse custom web fonts in Google Sheets charts(08.09.2026 um 17:05 Uhr)
Web TippsIntroducing the new 1Password App for Google Chat(08.09.2026 um 18:02 Uhr)
Web TippsUse custom web fonts in Google Sheets charts(08.09.2026 um 17:05 Uhr)
Web TippsIntroducing the new 1Password App for Google Chat(08.09.2026 um 18:02 Uhr)

🔧 Programmierung 🕛 vor 3 Jahren 13 Min Lesezeit
0

Getting Started in Go

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

Purpose of this post is simply to present a little of why the language Go appeared and present a little of its syntax and demonstrate some areas where Go is more applied. For everyone who would like to further increase their arsenal for web development this post will help you to clarify some important points when we are starting and learning a new programming language.






Getting Started in Go❤️



Before we start, it's important to point out that programming languages ​​are tools and like any good tool, we have to know when to use them. There are scenarios and problems that are only solved with specific languages ​​and there are other universes of problems that we have hundreds or thousands of languages ​​that somehow solve the same problem. So like a good professional, the more tools you know to solve problems, the better it will be for your professional career 🤩.



The Go language in its universe of possibilities is a common use language I don't really like this term it seems like it's like a silver bullet and solves all problems but not really, Go was born by a purpose and solve problems of the web universe and take advantage of the new technology of multicores in servers, well this was the initial purpose 😂.






History of the Go project



“Robert Griesemer, Rob Pike, and Ken Thompson began sketching goals for a new language on the whiteboard on September 21, 2007. Within days, the goals settled into a plan to do something and a fair idea of ​​what it would be like. . Design continued part-time in parallel with unrelated work. In January 2008, Ken started work on a compiler to explore ideas; it generated C code as its output. By mid-year, the language had become a full-time project and had established itself enough to try a production compiler. In May 2008, Ian Taylor started independently on a GCC frontend for Go using the preliminary specs. Russ Cox joined in late 2008 and helped move the language and libraries from prototype to reality.”








Official site



To start in Go❤️ let's take a few steps back, let's start our whole trajectory knowing the official website of lang this is the official page , language specs, download, Go tour and much more.



The official website apparently looks small but it is very complete and big. So we have practically everything we need to know about Go to start our learning in this language that is a phenomenon.



Where do I start on the Site



I'm going to create a line of reasoning so that we can understand Go in the most practical way possible.



Before installing Go, or running Go through play, let's go through some parts of the doc so that we can understand a little of the history of Go and why a new language was born in this universe of thousands of programming languages.







A go tour



This link would be the second most important link in my hierarchy for us to learn Go.





Playground Go



Here is very beautiful, you don't need to install anything on the machine to run something quickly in Go, just enter ❤️ on this site you will be able to run Go 😱 that's right we don't need to install anything for now, you can run everything through the browser and get to know the syntax of the language and learning.



Go and by ❤️ this is where you will take a few hours to read this, it doesn't have to be all at once, of course, but you must read it. This page is essential to organize your ideas and really understand a little more about Go .



This is one of the largest pages and requires more reading, but this page is essential for a better understanding of the Go language, the time you spend reading this page will surely save you hours of work.



❤️ I chose





Editors and IDE



This link is about the IDEs and Editors that you can use when you have Godando. The Go language doesn't need much for us to be able to edit our codes, but we have some interesting plugins to make our day to day even easier
survey, only 7.7% use sublime and vim 14% nvim is a plugin that they will use in vim. The darling and adopted by the Go team is VsCode with 41% adherence.





Strengths of the Go language



Before we do our famous “Hello World” let's show some strengths of the Language, let's preview the pillars and characteristics of the Go language.





3 Pillars



We have some well defined pillars in Go, this will help you to further clarify your horizon when it comes to Go.



  • Simplicity


  • Legibility


  • Productivity


This has become over the years something so standard for those who are developing in the Go universe that it sounds like poetry to the ears. We know that go is an attempt to join two different worlds, the world of compiled languages ​​with interpreted languages, in 2007 the idea was born and with the objective of creating a new programming language.





Main features



In Go we have some outstanding features of the language that make it even more powerful for developing web applications for servers.



  • Only 25 keywords


  • Low learning curve


  • Compiled statically


  • Multiplatforms now support RISC-V


  • Concurrent Paradigm


  • Static Typing


  • Backward Compatibility


All these points make the language even more interesting, the team of engineers that developed the language did an excellent job or better see doing it, Go is simply fantastic some don't like its designer but it's understandable more than 20 years developing in OO and Functional paradigms as if there is no life on another planet is understandable 😂.





Installing Go



This is the moment we've all been waiting for, get your hands dirty and install locally, on the official website you can't go wrong, there's nothing simpler than installing Go on your machine so you can program in Go. Taking advantage of this and making it clear that: We don't need to install Go on the server, this is exactly what you read, on your server whatever it may be, On-premises, an Ec2 from Aws or a pod on k8s whether it's on Gke, or k8s from DigitalOcean, that is on ECS or EKS, whether it is a serverless or on any hosting server of your choice, what you will need is the binary whether in a docker image for example or not. This is one of the strengths of Go, we don't need to carry stuff to the server this is one of the great benefits of using Go in web applications on servers and this is what Go became known for like the containers language😍.



in this link you will have the step by step on how to install in different Operating Systems but I will leave the installation in Linux here.



Installation on Linux



If you have a previous version of Go installed, be sure to 5.6 and extract it in /usr/local


  • $ sudo tar -C /usr/local -xzf but we are using distroless which is a very small lean base and contains our binary. I'm sorry, but isn't this fantastic or simply beautiful❤️?



    The distroless concept is simple, it assumes that we focus on our application and less on the Linux distribution.



    Now let's make a small example of a rEST API just to exemplify our Dockerfile and show in practice how simple it is to upload a docker image of our project.




    CODE
    package main

    import(
    "log"
    "net/http"
    )

    func main() {
    mux := http.NewServeMux()
    mux.HandleFunc("/api/v1/ping", Ping)
    log.Println("Run Server 8080")
    log.Fatal(http.ListenAndServe(":8080", mux))
    }

    func Ping(w http.ResponseWriter, r *http.Request) {
    log.Println("server ok")
    w.WriteHeader(http.StatusOK)
    w.Write([]byte(`{"msg":"pong"}`))
    }






    Now we just build our project with the following command:



    $ docker build — no-cache -f Dockerfile -t jeffotoni/apisimplego:latest .



    this will generate an image locally on your machine and now just run it for us to test.



    $ docker run — rm — name apisimplego -p 8080:8080 jeffotoni/apisimplego



    Ready now, just shoot to our /api/v1/ping endpoint that we created



    $ curl -i



    The PDF link of the presentation can be found at: speakerdeck.com/jeffotoni

    Vollständiger Original-Bericht
    Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
    ↗ Original-Artikel auf dev.to lesen
  • Wie bewertest du diesen Beitrag?
    1 Klick Feedback
    Teilen mit Netzwerk & Team:

    Community-Analysen & Experten-Meinungen 0

    Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
    Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
    Community Pulse: Relevanz-Einschätzung
    1 Klick Experten-Votum
    🔴 Akute Relevanz 0%
    🟡 In Evaluierung 0%
    🟢 Keine Auswirkung 0%
    Spannende Innovation 0%
    Verwandte Story-Cluster & Quellen (Vektor-KI)
    Port 8095 Engine
    3 Quellen
    Use custom web fonts in Google Sheets charts
    2 Quellen
    Introducing the new 1Password App for Google Chat
    1 Quelle
    Context-aware access controls are available for Gemini Enterprise in the Admin console
    Ähnliche Beiträge
    🔍 Verwandte News

    Auch interessante Nachrichten Getting Started in Go

    Thematisch verwandte Begriffe: Getting, Started · 6 Treffer

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...