Skip to content

Latest commit

 

History

History
37 lines (19 loc) · 910 Bytes

instructions.md

File metadata and controls

37 lines (19 loc) · 910 Bytes

In this exercise, we will write some simple functions that return zero values for various Go types.

1. Return an empty interface

Adjust the EmptyInterface function to return an empty interface.

2. Return an empty map

Adjust the EmptyMap function to return an empty map.

3. Return an empty slice

Adjust the EmptySlice function to return an empty slice.

4. Return an empty string

Adjust the EmptyString function to return an empty string.

5. Return an empty channel

Adjust the EmptyChannel function to return an empty channel.

6. Return an empty pointer

Adjust the EmptyPointer function to return an empty pointer.

7. Return an empty bool

Adjust the EmptyBool function to return an empty bool.

8. Return an empty func

Adjust the EmptyFunc function to return an empty func.

9. Return an empty int

Adjust the EmptyInt function to return an empty int.