Go for Beginners — Part 3

Literals

  • + to add
  • - to subtract
  • * to multiply
  • / to divide
  • % to find the remainder (Also known as the modulus operator)

Constants

const bruhMoment = "bruh"

Basic Data Types In Go

String

Integer

var bruh int
var bruh float
var bruh complex

Basic Numeric Data Types

Variables

Longhand Notation

var variableName type

Shorthand Notation

variableName := value

Zero Values

Summary

--

--

--

Backend Developer, Probably listening to music and drinking coffee

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Thinking in Hashes

Use Nginx-Proxy and LetsEncrypt Companion to Host Multiple Dockerized Websites

The helpful use of partials with locals to make our code reusable and dry.

CanHap501 — Hapstrument — iteration 1

Delta-v calculator Kerbal Space Program

Embedded System Project : Blink the LED, ESP32 First Project

DEMONSTRATION ON ANSIBLE INDUSTRIES USE-CASES

How to use Auto Increment in SQL?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kodey Thomas

Kodey Thomas

Backend Developer, Probably listening to music and drinking coffee

More from Medium

Part 2: Grpc Proto Code Generation Using Protoc for Message and Services

Testing Web Server: Part 2

Part 1: Becoming Golang developer — Basic of Golang

Securing gRPC connection with SSL/TLS Certificate using Go