Zum Hauptinhalt springen
ProdukteDesktop-WerkzeugeTASTECADZeichnungsprüfungTASTEFILESDateiverwaltungTASTEFTPDateiübertragungTASTESSHRemote-ArbeitsbereichTASTEZIPKomprimieren und EntpackenTASTEWINMDateiverwaltungEntwicklerwerkzeugeTASTECODEIntegrierte Entwicklungsumgebung für RustTASTESTUDIOIntegrierte Entwicklungs- und TestumgebungTASTEETLDatenintegration (ETL)ServerTASTEREMOTERemote-Desktop-ServerTASTEGEOGeodatenserverTASTEMAILE-Mail-ArbeitsbereichInvestierenTASTESTOCKDesktop-App für automatischen AktienhandelErste SchritteDownloadsDokumentationKaufenAlle Produkte
Marktplatz
Neuigkeiten
TechnikNeuigkeitenEntwickler-News von heuteEntwicklerdokuProgrammiersprachenRustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDartWeb-Frontend-FrameworksNext.jsReactVue.js · NuxtSvelteKitAngularServer-FrameworksSpring BootDjangoFastAPIASP.NET CoreNestJS · ExpressApp- & Desktop-FrameworksTauriFlutterReact NativeElectronAlgorithmenAlgorithmus-GrundlagenKernalgorithmenFortgeschrittene AlgorithmenAlgorithmen für die Praxis
CommunityProjekteEntwicklungslogsPromptsProbleme mit KI-ToolsShowcaseCommunity-Leitfaden
ZusammenarbeitWissenstransferWebsite-AufbauDesktop-App-AufbauRelease- und ZahlungspipelineVertriebspartnerKontakt
DiensteRemote-DesktopIndividuelle Installationspakete
TASTEDEV
Produkte

Desktop-Werkzeuge

TASTECADKomplexe Zeichnungen, mühelos geöffnetTASTEFILESNur die Dateien, die zählen – in BestzeitTASTEFTPDer aufgeräumteste Weg für Ihre DateienTASTESSHDie stärkere Verbindung zu Ihren ServernTASTEZIPSchneller packen, sicherer entpackenTASTEWINMEin tastaturorientierter Dateimanager mit zwei Fenstern

Entwicklerwerkzeuge

TASTECODERust-Apps bearbeiten, bauen, debuggen und testen – alles in einem FensterTASTESTUDIOVom Bearbeiten bis zu Remote-Tests und freigegebenen KI-KorrekturenTASTEETLDaten bewegen, die Werte im Blick

Server

TASTEREMOTEEin Remote-Desktop auf Ihrem eigenen ServerTASTEGEOEin GeoServer-kompatibler Geodatenserver, neu aufgebaut in RustTASTEMAILIhre E-Mail wieder in Ihrer Hand

Investieren

TASTESTOCKAutomatischer Aktienhandel nach Ihren Regeln: wann und was

Erste Schritte

DownloadsNeueste Versionen aller ProdukteDokuSo nutzen Sie jedes ProduktKaufenAbos und DauerlizenzenAlle ProdukteAlle Produkte im Überblick
Alle Produkte
MarktplatzNeuigkeiten
Technik

Neuigkeiten

Entwickler-News von heuteOffizielle Meldungen zu Sprachen, Frameworks, GitHub und KIEntwicklerdokuAnleitungen zu Sprachen, Frameworks und Algorithmen

Programmiersprachen

RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDart

Frameworks

Web-Frontend-FrameworksNext.jsReactVue.js · NuxtSvelteKitAngular
Server-FrameworksSpring BootDjangoFastAPIASP.NET CoreNestJS · Express
App- & Desktop-FrameworksTauriFlutterReact NativeElectron

Algorithmen

Algorithmus-GrundlagenKomplexitätsanalyse · Sortieren · Suchen · Grundlegende Datenstrukturen · Bäume und HeapsKernalgorithmenGraphtraversierung · Kürzeste Wege und minimale Spannbäume · Dynamische Programmierung · Greedy-Algorithmen · Teile und herrsche · BacktrackingFortgeschrittene AlgorithmenZeichenkettenalgorithmen · Mathematik und Zahlentheorie · Bitmanipulation · Segmentbäume · Union-FindAlgorithmen für die PraxisStrategie für Coding-Interviews · LRU-Cache · Rate Limiting · Konsistentes Hashing
Alle Entwicklungsdokumente
Community
ProjekteEntwickler und Projekte entdeckenEntwicklungslogsEntscheidungen und ErkenntnissePromptsWiederverwendbare AnweisungenProbleme mit KI-ToolsProbleme und Workarounds für Claude, Codex, GeminiShowcaseFertige ErgebnisseCommunity-LeitfadenWie wir offen entwickeln
Zusammenarbeit
WissenstransferNative Apps mit Rust und eguiWebsite-Aufbau10 Sprachen, Konten, Dokumentation und DownloadsDesktop-App-AufbauRust und egui, ohne WebViewRelease- und ZahlungspipelineSignatur, MSI, deb, rpm, AppImage, PrüfsummenVertriebspartnerEmpfehlen und 30 % erhaltenKontaktEntwicklung, Partnerschaft, Investition
Dienste
Remote-DesktopIhren Computer im Browser erreichenIndividuelle InstallationspaketeNur nötige Funktionen, Einstellungen vorab
Kaufen
DE
한국어EnglishDeutschEspañolFrançaisItalianoPortuguês (Brasil)日本語简体中文繁體中文
Anmelden
Anmelden
TASTEDEV

Von kleinen Werkzeugen zu besserer Entwicklung.

support@tastedev.netTASTEDEV unterstützen
ProdukteProduktübersichtKaufenDokuDownloadsMarktplatzSupport
CommunityProjekteEntwicklungslogsPromptsProbleme mit KI-ToolsShowcase
RichtlinienÜber unsDatenschutzerklärungNutzungsbedingungenAbo-BedingungenRückerstattungCommunity-Richtlinien
KontoAnmeldenRegistrieren
Besucher
Heute
Gestern
Aufrufe gesamt
Firma
GXSOFT
Vertretungsberechtigt
CHOI YOUNG GU
Handelsregisternummer
853-44-00368
Anschrift
9F V24, 351 Gyeongin-ro, Michuhol-gu, Incheon, Republic of Korea
Telefon
+82-10-4404-1523
E-Mail
whitecalvin@tastedev.net
Datenschutzbeauftragter
CHOI YOUNG GU

© 2026 TASTEDEVProduktinformationen basieren auf verifizierten Entwicklungsquellen.Veröffentlicht · wird verbessert

Go-Dokumentation
Go
Getting Started with GoSyntax BasicsTypes and DataModules and PackagesErrors and TestingKey Concepts: Concurrency
Diskussionen

Go-Anleitung · 1/6

Getting Started with Go

Dieses Kapitel ist vorerst nur auf Englisch verfügbar.

Go was designed to be boring in the best sense: a small language, a fast compiler, and concurrency built in from day one. This chapter walks you from a fresh machine to a compiled binary. You will install the toolchain, create a module, run and build a program, and wire up your editor so it catches mistakes as you type.

Installing the toolchain

Grab an installer for your platform from go.dev/dl. On Windows and macOS, run the installer and you are done. On Linux, the usual approach is to unpack the archive into /usr/local and add /usr/local/go/bin to your PATH. Package managers such as Homebrew or winget work too, though Linux distribution repositories sometimes lag well behind the current release, so check what you actually got.

# Linux: replace any previous install and put go on the PATH
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go*.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin

# Confirm everything is wired up
go version
go env GOPATH GOROOT

If go version prints a version string, the install worked. go env shows the settings the toolchain uses. GOROOT is where Go itself lives. GOPATH holds the module download cache and, under GOPATH/bin, any binaries you install with go install. Adding that bin directory to your PATH saves a lot of typing later.

Your first module

Go organizes code into modules: a directory containing a go.mod file, plus every package beneath it. Start each new project with go mod init and a module path. By convention, the path is where the code will eventually live, such as a repository URL, but any unique name works while you experiment.

mkdir hello && cd hello
go mod init example.com/hello

Now add main.go. Anything you want to compile into an executable must be in package main and must define a main function, which is where execution begins.

package main

import "fmt"

func main() {
	fmt.Println("Hello, Go!")
}

Running and building

go run compiles and runs in one step, dropping the binary in a temporary directory. It is ideal for quick iterations. go build leaves a real executable behind in the current directory.

go run .             # compile the current package and run it
go build             # produces ./hello (hello.exe on Windows)
go build -o bin/app  # choose the output path
./hello

# Cross-compile for another platform: just set two variables
GOOS=linux GOARCH=arm64 go build -o hello-linux-arm64
Fragen zu diesem Kapitel?
Nächstes KapitelSyntax Basics

By default a Go binary is a single self-contained file, which makes deployment refreshingly simple: copy it to the server and run it. Cross-compiling needs no extra toolchain; GOOS and GOARCH are all it takes.

The go command at a glance

CommandWhat it does
go run .Compile and run immediately
go buildBuild an executable or check that a package compiles
go test ./...Run tests in every package
go fmt ./...Rewrite code into the standard format
go vet ./...Static checks for common bugs
go mod tidySync go.mod with what the code imports
go doc fmt.PrintlnRead documentation in the terminal

The ./... pattern means "this directory and everything below it." Because gofmt defines the one true layout, Go teams simply do not argue about brace placement or indentation. Go source uses tabs for indentation, and the formatter takes care of the rest.

Laying out a project

A tiny program needs nothing more than go.mod and main.go. As a codebase grows, a layout like the one below is common. None of it is mandatory, with one exception: the toolchain gives the internal directory special meaning.

hello/
  go.mod            # module path and dependency requirements
  go.sum            # checksums for those dependencies
  main.go           # package main
  cmd/
    server/main.go  # one directory per extra binary
  internal/
    store/store.go  # importable only from inside this module
  greet/
    greet.go        # a package other modules may import

Every directory is exactly one package, and all .go files in it must declare the same package name. Packages under internal can only be imported by code rooted at the parent of that internal directory, which makes it the natural home for implementation details you do not want to support publicly.

Editor setup with gopls

gopls (pronounced "go please") is the official language server maintained by the Go team. It powers completion, go-to-definition, rename, diagnostics, and automatic import management. In VS Code, install the Go extension and accept its prompt to install the tools. GoLand ships its own analysis engine. Neovim, Emacs, Helix, and other LSP-capable editors can all talk to gopls directly.

go install golang.org/x/tools/gopls@latest
gopls version

Configure your editor to run gofmt or goimports on save. This matters more in Go than elsewhere: unused imports and unused local variables are compile errors, not warnings, so having imports added and removed automatically keeps you in flow.

Summary

  • Install from go.dev/dl and verify with go version.
  • Start a project with go mod init <module path>; executables live in package main and start at main.
  • Use go run for quick feedback, go build for binaries, and GOOS/GOARCH for cross-compiling.
  • One directory equals one package, and internal keeps code private to your module.
  • Hook gopls into your editor and format on save.

0 Kommentare

Top-KommentareNeueste zuerst

Anmelden · Melde dich an, um einen Kommentar zu schreiben.