Albert Dugba🇬🇭🚀
albertdugba.bsky.social
Albert Dugba🇬🇭🚀
@albertdugba.bsky.social
Frontend Engineer
I also learnt about pointers in Go.They store the memory address of another variable that can be useful especially when you want to mutate the data or state, it mutates the original data which is performant
February 5, 2025 at 1:27 PM
Day 4, on Structs
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
February 5, 2025 at 12:53 PM
Now let's talk about retrieving that data from the file system. The "os" has a utility that can be used to get the data "os.ReadFile"
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,
January 26, 2025 at 5:52 PM
to save to the file system. Before that, let's talk about byte slices. So byte slices is the normal slices but with a type of byte which is another data type commonly used to handle binary data. Now in our case, persisting the list of data todos needs to be in a type byte slice. but first,
January 26, 2025 at 5:38 PM
Day 3 I learned about
1. Reading and writing to the file system
2. Receiver functions
3. Error handling
#100DaysofGo #100DaysOfCoding #Golang #programming
January 26, 2025 at 5:21 PM
in slices, there is only way to loop through data which is the `for loop` like this which is straightforward
January 20, 2025 at 11:09 PM
Day 2: Picking back up where I left off. I covered
1. Variables
2. Slices and Arrays Data types
3. Functions

#100DaysOfCode #100daysOfGo #coding #software
January 20, 2025 at 10:41 PM
Day 1
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
January 14, 2025 at 11:22 PM
November 21, 2024 at 8:40 PM