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.

How To Convert JSON to CSV in Golang Example

Golang csv.NewWriter() is an inbuilt function that converts the data structure into csv format. CSV(Comma Separated Value) is a highly accepted data language, commonly used by Excel and spreadsheets, and as such is very useful if your…

How To Compare Strings in Golang Example

Golang strings.Compare() is an inbuilt method that returns an integer comparing two strings lexicographically. The result will be 0 if a==b -1 if a < b +1 if a > b The Compare() function is included only for symmetry…

Golang: How To Convert JSON to Map in Go

Golang json is one of the most used packages. JSON(JavaScript Object Notation) parsing a day to activity for a developer. Most of the API which developer parse is in JSON. Here we will see how we can parse JSON Object to Map. How To…

Golang: How To Convert Slice To String Example

Golang string Join() is an inbuilt function that converts slice to string. Python slice contains string data. With strings.Join() function, we can convert a string slice to a string. We will take a slice of strings and convert slices to…

How To Convert Golang Int To String Example

Golang has the inbuilt package called strconv that provide functions that convert int to string. To convert the int type to string type, you can use one of the following methods: strconv.FormatInt: FormatInt returns a string…

Difference Between Golang Vs. Python

Python is a general-purpose programming language. Go is the programming language, also known as Golang, created by Google in 2009. Python is an excellent language with an easy to understand syntax and hence more readable, flexible. In…

Golang Short Declaration Operator Example

Golang Short Declaration Operator is used to create the variables having a proper name and initial value. The primary purpose of using the short declaration operator is to declare and initialize the local variables inside the functions and…

Scope of Variables In Golang | Go Variables Scope

A scope in Golang is the region of a program where a defined variable can exist, and beyond that, a variable cannot be accessed. The Scope of the variable can be defined as a part of the program where the specific variable is accessible. A…