You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/exercises/catalog.yaml
+2-6Lines changed: 2 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -192,20 +192,16 @@ projects:
192
192
- Implement MarshalPerson to convert a struct into JSON using json.Marshal.
193
193
- Implement UnmarshalPerson to convert a JSON string into a struct using json.Unmarshal.
194
194
- Handle and return errors properly in both functions.
195
-
196
195
- slug: 109_epoch
197
196
title: "Epoch Conversion"
198
-
difficulty: beginner
199
-
topics: ["time", "epoch", "unix"]
197
+
test_regex: ".*"
200
198
hints:
201
199
- "Use Go's `time.Unix()` to convert an epoch to time."
202
200
- "Use `t.Unix()` to convert time back to epoch."
203
201
- "Remember Go’s `time.Parse` can help parse date strings."
204
-
205
202
- slug: 110_recover
206
203
title: Safe Panic Recovery
207
-
difficulty: medium
208
-
topics: ["panic", "recover", "defer"]
204
+
test_regex: ".*"
209
205
hints:
210
206
- hint_type: concept
211
207
text: The `recover()` function is ONLY useful inside a function that is executed by a `defer` statement. Outside of a deferred function, `recover` will return `nil` and have no effect.
0 commit comments