Commit Graph

2 Commits

Author SHA1 Message Date
Hyeongju Johannes Lee
8fc5df7e37 Add govet-fieldalignment
Add govet-fieldalignment to .golangci.yml
Fix errors that come from adding govet-fieldalignment
- by reordering the fields of structs
- by putting nolint:govet annotations

Signed-off-by: Hyeongju Johannes Lee <hyeongju.lee@intel.com>
2021-09-20 20:59:04 +03:00
Mikko Ylinen
0574c42078 fpga: move getRequestedResources() to new package
The function will be re-used by other webhooks too so it's better
to move it to its own package.

The unit tests are taken from the original implementation with some
minor changes.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-09-10 15:31:26 +03:00