AppDividend
Latest Code Tutorials
Browsing Category

Go

Go is an open source programming language that makes it easy to build simple, reliable, and efficient software. Go is expressive, concise, clean, and efficient. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel type system enables flexible and modular program construction. Go compiles quickly to machine code yet has the convenience of garbage collection and the power of run-time reflection. It’s a fast, statically typed, compiled language that feels like a dynamically typed, interpreted language.

Introduction to Golang | What is Go | Why Use Go

Go, also known as Golang, is a statically typed, compiled programming language designed at Google by Robert Griesemer, Rob Pike, and Ken Thompson. Go is syntactically very similar to C, but with memory safety, garbage collection, structural…

How To Read Files In Golang | Go File Read Example

Read files in Golang is one of the most common operations. Golang has an io/ioutil package that provides ReadFile() function. The ioutil.ReadFile() function reads an entire file into memory. We will use os, io, and bufio packages. How To…

How To Open File In Golang | Go File Open Example

Golang has an inbuilt package called os, and that package has a function called OpenFile() that can be used to open a file. We can open a file using the os.OpenFile() function. First, we need to import the os package, and then we can use…

Golang Strings Example | Strings Package In Go

Golang Strings are different compare to other programming languages. A string in Go is the slice of bytes. We can create Strings by enclosing their contents inside " "(double quotes) and not ' '(single quotes). Golang Strings example…

Golang Time Example | Time Package in Golang

Golang offers extensive support for times and durations. Go provides a built-in time package. Working with time in Go is pretty straightforward. The time package provides api for measuring and displaying time. The calendrical calculations…