Cookies management by TermsFeed Cookie Consent

introduction

Learn the basics of Go with practical examples

πŸ—’οΈ Read a CSV file in Go

Learn how to read a CSV or TSV file line by line or the whole file at once
introduction file csv

βš™οΈ Convert interface to string in Go

Learn how to format any value as a string
introduction interface strings

⏲️ Measure execution time in Go

Learn how to measure the time taken by a function
introduction time

πŸ“ List files in a directory in Go

Learn how to list files in a folder in 4 different ways
introduction file

πŸ“‚ Check if a file exists in Go

Learn how to check if a file exists in Go after or before opening it
introduction file errors

πŸ› Handle errors in Go with errors.Is() and errors.As()

Learn how to check error type using errors.Is() and errors.As() functions
introduction errors

πŸ—ƒοΈ 3 ways to pretty print JSON in Go

Learn how to generate JSON with indentation
introduction json strings

πŸ—ΊοΈ Convert map to JSON in Go

Learn how to convert map to JSON string
introduction json strings

πŸ”’ Convert int to string in Go

Learn how to convert int, int64, int32, int16 or int8 to a decimal, hexadecimal octal or binary string
introduction numbers integer

βœ’οΈ Write to a CSV file in Go

Learn how to write data to a CSV or TSV file
introduction file csv
1 ... 6 ... 8