Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Initializations (not this case),
Remains from debugging,
Type checks (we force the compiler to check everything for us).
In this case, the third one.
var _ IRouter = &RouterGroup{}
Verify that the RouterGroup structure implements the IRouter interface.
This is part of the code to test.
True, this is not a separate active test, those that are written in *_test.go files.
But we force additional checks to be carried out at the compilation stage.
Probably so that the static analyzer does not swear that the types are declared and not used.
Under the day and month, allocate a separate block of fixed width with text alignment to the right for the number and to the left for the month.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question