directory
0.0.0-20240710092454-d40bdaea4b58
Repository: https://github.com/kdlug/go.git
Documentation: pkg.go.dev

# Packages

every value has a type every function has to specify types of it's arguments but it doesn't mean that we have to rewrite every function with the same logic to accomodate different types interfaces help us to reuse code We have 2 functions getGreeting() and printGreeting() for 2 languages Functions with the same name will be overwritten, so below code won't work Basically implementationn of getGreeting() will be different for each language But printGreeting() will be exactly the same We can use interfaces to fix this problem.
interfaces are implicit, we don't have to link with interface keyword etc.
reader and writer.
No description provided by the author
No description provided by the author
create a program that reads the content of a text file then print its content to a terminal the file name should be procided as an argument to the program go build -o readfile.
No description provided by the author
No description provided by the author