/go-code

go code practice problems

Primary LanguageGo

go-code

go code practice problems

Run main.go to execute code

Programs

main.go Main program which calls functions in other packages. This program is written in menu driven way

Concepts covered: Functions, Switch, Packages etc.

student.go Simple program to enter student name and marks and display student details entered (name and total marks)

Concepts covered: Slices, Functions, Struct, Methods, Packages etc.

subfactorial.go Program to find number of subfactorials for a number. Problem from daily programmer

Concepts covered: Functions, Recursion, Packages etc.

calculator.go Simple calculator program which does basic operations (addition, subtraction, multiplication and division)

Concepts covered: Functions, Errors, Switch, Packages

References

Effective Go

CodeReviewComments