Structs in a data structure in go. Surface to say, they're just like an object in JavaScript where you define the shape or interface of something. You can embed multiple structs in another struct which is straightforward. You can also have a receiver function on them
#100daysofCod
Structs in a data structure in go. Surface to say, they're just like an object in JavaScript where you define the shape or interface of something. You can embed multiple structs in another struct which is straightforward. You can also have a receiver function on them
#100daysofCod
Reading a data from the file system returns the []byte slice and an error
In the slice of todos, since we have a slice of todos in a string type,
Reading a data from the file system returns the []byte slice and an error
In the slice of todos, since we have a slice of todos in a string type,
1. Reading and writing to the file system
2. Receiver functions
3. Error handling
#100DaysofGo #100DaysOfCoding #Golang #programming
1. Reading and writing to the file system
2. Receiver functions
3. Error handling
#100DaysofGo #100DaysOfCoding #Golang #programming
1. Variables
2. Slices and Arrays Data types
3. Functions
#100DaysOfCode #100daysOfGo #coding #software
1. Variables
2. Slices and Arrays Data types
3. Functions
#100DaysOfCode #100daysOfGo #coding #software
So I started learning go today. I started by installing the go via home-brew. I learn about;
- package main: The package main is the entry point to every go program which compiles the go program into a machine code
#golang #go #programming #learning #coding #developer #100DaysOfCode
So I started learning go today. I started by installing the go via home-brew. I learn about;
- package main: The package main is the entry point to every go program which compiles the go program into a machine code
#golang #go #programming #learning #coding #developer #100DaysOfCode