mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 19:36:44 +01:00
Add lint checks: gofmt, goimports, golint
- gofmt - Gofmt checks whether code was gofmt-ed. By default this tool runs
with -s option to check for code simplification
- goimports - Goimports does everything that gofmt does. Additionally it checks
unused imports
- golint - Golint differs from gofmt. Gofmt reformats Go source code, whereas
golint prints out style mistakes
- checks the uncommented exported functions & types
Update the code to fix the lint checks.
This commit is contained in:
@@ -4,8 +4,8 @@ import (
|
||||
"github.com/hermeznetwork/hermez-node/common"
|
||||
)
|
||||
|
||||
// Proof TBD this type will be got from the proof server
|
||||
type Proof struct {
|
||||
// TBD this type will be got from the proof server
|
||||
}
|
||||
|
||||
// BatchInfo contans the Batch information
|
||||
@@ -58,6 +58,7 @@ type BatchQueue struct {
|
||||
queue []*BatchInfo
|
||||
}
|
||||
|
||||
// NewBatchQueue returns a new *BatchQueue
|
||||
func NewBatchQueue() *BatchQueue {
|
||||
return &BatchQueue{
|
||||
queue: []*BatchInfo{},
|
||||
|
||||
Reference in New Issue
Block a user