Exercises
Try to do the following exercises:
- Correct the error in
typedConstants.go
. - Create and test a function that concatenates two arrays into a new slice.
- Create a function that concatenates two arrays into a new array. Do not forget to test it with various types of input.
- Create a function that concatenates two slices into a new array.
- Run
go doc errors Is
in order to learn abouterrors.Is()
and try to create a small Go program that uses it. After that, modifyerror.go
to useerrors.Is()
. - Modify
stats.go
in order to accept the number of randomly generated values as a command line argument. - Modify
stats.go
in order to always use randomly generated data.