© Shiju Varghese 2016

Shiju Varghese, Go Recipes, 10.1007/978-1-4842-1188-5_3

3. Structs and Interfaces

Shiju Varghese

(1)Chettiyadan House, Cheranalloor, India

When you write programs, the type system of your choice of language is very important. Types allow you to organize your application data in a structured way that can be persisted into various data stores. When you write applications, especially business applications, you organize your application data using various types and persist the values of those types into persistence storage. When you write applications with Go, it is important to understand its type system and its design philosophy. Go provides various built-in types such as int, uint, float64, string, and bool. Data structures ...

Get Go Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.