[Go]Capture user’s entered sentence and save into a file.

This extends the previous post about capturing user's input. The captured input is stored into a file known as text.txt. To write a string to a file ioutil.WriteFile is used, this method requires three arguments: filename in string string byte slice, which is the ascii representation of the string slice The permission, if unsure check … Continue reading [Go]Capture user’s entered sentence and save into a file.

Advertisement

[Go]Assignment 3: Open a text file and display the content

So here is the assignment 3 for this course Go: The Complete Developer's Guide (Golang) by Stephen Grider, this assignment is a self research assignment which is why Stephen branded assignment3 as hard mode, this is an assignment to train students on how to read the Go documentation. It is not overly hard but it … Continue reading [Go]Assignment 3: Open a text file and display the content

[Go]Indicate from 0 to 10 which is even and which is odd

This is an assignment 1 by Stephen Grider in his Go: The Complete Developer's Guide (Golang) from udemy. By far the easiest to follow and least boring lesson about Go, well I said by far the easiest is because I bought a lot of courses from other instructors and none of them matches how Stephen … Continue reading [Go]Indicate from 0 to 10 which is even and which is odd