I tried to define a constant date like this:
const fixed = time.Date(2018, time.January, 3, 1, 2, 3, 0, time.UTC)
However this does not work because of const initializer is not a constant
. :(
Although I understand that technically Date
is a function call, semantically this is a very constant expression.
Is there a way to define a date as a constant?