Code Monkey home page Code Monkey logo

go-get-started's Introduction

Go - Get Started

What is Go

  • Go was developed by Robert Griesemer, Rob Pike, and Ken Thompson at Google in 2007
  • Go is an open source programming language
  • Go is a cross-platform. It works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.)
  • Go can be used to create high-performance applications
  • Go supports concurrency
  • Go is a fast, statically typed, compiled language that feels like a dynamically typed, interpreted language
  • Go's syntax is similar to C++ but significant different points are
    • Go does not support classes and objects
    • Go does not support inheritance
    • Go has automatic garbage collection
    • Go is fast compile time

What is Go Used For?

  • Web development (server-side)
  • Developing network-based programs
  • Developing cross-platform enterprise applications
  • Cloud-native development

Go Install

Get a relevant installation files at https://golang.org/dl/.
Follow the instructions related to your operating system.
To verify if Go was installed successfully, run this command in terminial

go version

goVersioin
What is the version you get?

IDE - config VS Code to use Go

  • Launch the VS Code editor
  • Open the extension manager(Ctrl + Shift + x), type "go" and hit enter
  • Find the Go extension by the GO team at Google and install the extension
    configureGo
  • After that, open the command palette( Ctrl + Shift + p), run the Go: Install/Update Tools command
  • Select all the provided tools and click OK to install all.
    configureGo2

Run the code

In the folder that includes your Go source files (such as helloworld.go file) In the ternimal (cmd or VS code terminial), type and run

go mod init example.com/hello
go run .\helloworld.go

outHelloWorld

Congratulations! You have successfully created your first Go program. To save the program as an executable, type and run:

go build .\helloworld.go

and you will get helloworld.exe

go-get-started's People

Contributors

liennguyen2912 avatar

Watchers

 avatar

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.