CodeKru
Menu

Tutorials & reference

Go tutorials and reference

Find explanations and practical examples in the Go reference library.

Browse conceptsGo BasicsGo Control StatementsGo Functions and MethodsArrays and SlicesGolang StringsGolang MapsGolang StructsGolang interfacesMiscConversions
All published links shown

Go Basics

Hello World program in Golang

Golang Data Types

GoLang keywords

Variables in Go Language

How to take inputs from users in Go Language?

Go Control Statements

Go Language: If-Else Control Structures

Go Language: Understanding and Using For Loops

Go Functions and Methods

Functions in Go Language

Blank Identifier( underscore ) in GoLang

Variadic functions in Golang

Methods in Golang ( Golang methods )

Does Golang support method overloading?

Arrays and Slices

Arrays in Go Language

How to sort an array in Golang?

How to reverse an array in Golang?

Golang Slices

How to sort a slice in Golang?

Golang Strings

Strings in Go language

strings.Contains() method in Golang

strings.Count() function in Golang

strings.HasPrefix() method in Golang

strings.HasSuffix() method in Golang

strings.Index() method in Golang

strings.LastIndex() method in Golang

How to trim a string in Golang?

strings.ToLower() method in Golang

strings.ToUpper() method in Golang

strings.Replace() and strings.ReplaceAll() methods in Golang

Golang Maps

Introduction to Maps in Golang

How to iterate over a map in Golang?

How to delete or remove a key from a map in Golang?

Golang Structs

Golang Struct ( Structs in Golang )

Golang Nested Structs ( Nested structs in Golang )

Anonymous struct and fields in Golang

Golang Embedded structs and Promoted fields

Golang interfaces

Interface in Golang ( Golang interfaces )

Empty interface in Golang

Type Assertion in Golang

Misc

Pointers in Go Language

How to read a file in Golang?

How to list all files in a directory recursively using Golang?

Conversions

Convert int to float

Convert int to string