Closed halesyy closed 7 months ago
Running the example locally works for me. It also works on the playground (https://go.dev/play/p/BoZYtr_2j66) -- link taken from the sample itself.
Can you describe the steps you perform to see the issue?
Did you try to compile it? Sounds like an issue with your editor/setup as the compiler err's on unused variables. Which LSP are you using?
The example itself is correct though (as mentioned above).
https://gobyexample.com/time-formatting-parsing
There are warnings on the
e
values not used. I replaced them with_
.Further, the code does not compile due to the free
=
at the bottom of the code. I adjusted this to:=
which prints the error: