uploaded code #6
Annotations
5 errors and 6 warnings
lint:
parser.go#L58
Consider pre-allocating `parts` (prealloc)
|
lint:
parser.go#L27
return statements should not be cuddled if block has more than two lines (wsl)
|
lint:
parser.go#L64
ranges should only be cuddled with assignments used in the iteration (wsl)
|
lint:
f.go#L4
pass []any as any to func FormatSafe func(template string, data ...any) (string, error) (asasalint)
|
lint
issues found
|
lint:
f.go#L3
exported: exported function Format should have comment or be unexported (revive)
|
lint:
f.go#L8
exported: exported function FormatSafe should have comment or be unexported (revive)
|
lint:
parser.go#L10
exported: exported type Parsed should have comment or be unexported (revive)
|
lint:
parser.go#L15
exported: exported function Parse should have comment or be unexported (revive)
|
lint:
parser.go#L30
exported: exported method Parsed.Eval should have comment or be unexported (revive)
|
lint:
parser.go#L52
exported: exported type Part should have comment or be unexported (revive)
|