mirror of
https://github.com/kubescape/kubescape.git
synced 2026-02-14 18:09:55 +00:00
Also: * declared scanner resources as an enum type * replaced stdlib json, added uit tests for skipped resources * unexported worker pool * more unexported methods (i.e. everything that is not part of the interface) * refact(core): clarified mock injection logic and added a few unit tests at the caller's (CLI init utils) Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
16 lines
328 B
Go
16 lines
328 B
Go
package hostsensorutils
|
|
|
|
import (
|
|
jsoniter "github.com/json-iterator/go"
|
|
)
|
|
|
|
var (
|
|
json jsoniter.API
|
|
)
|
|
|
|
func init() {
|
|
// NOTE(fredbi): attention, this configuration rounds floats down to 6 digits
|
|
// For finer-grained config, see: https://pkg.go.dev/github.com/json-iterator/go#section-readme
|
|
json = jsoniter.ConfigFastest
|
|
}
|