mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-13 21:48:19 +00:00
99def96cc2
* Generic Slices library to support different data types ** Main module added under slice_generic.go ** Test cases passing ** Modified Bazel Build accordingly to run test suite * Periods added for the generic slice functions * Build through gazelle & linter fixes * Generic library using reflection for set operations * Improvement in test cases including float 32 * Error Handling using generic error message for unsupported type * Linter fixes and including more test cases * Linter fixes * Linter fixes in Errof function & increasing test coverage * Test cases corrections * Benchmark test added for reflection & non reflection functions Redundancy removed for various data type Panic removed from the code & error handled * documnet linter error removed * Benchmark done with SSZ for reflection and non-reflection based functions * Bazel build file updated * gofmt & golinter error fixes * Added data type support for uint32,int32,byte,int64,uint64 * Removed the redundant code and condition of error handled * changes in linter & fixes * Linter fixes * Individual error handled for slices * Removed unwanted variable t * linter fixes * Removed unwanted conditions * linter & test cases fix * Linter fixes in slice generic * rebuilding with test
19 lines
295 B
Go
19 lines
295 B
Go
/*
|
|
Package slices implements set operations for specified data type
|
|
|
|
Currently types which are tested and supported are:
|
|
|
|
[]uint32
|
|
[]int32
|
|
[]string
|
|
[]float32
|
|
[]uint64
|
|
[]int64
|
|
[]string
|
|
[]float64
|
|
|
|
Intersection, Union, Not , IsIn are the operations which are supported on slices
|
|
|
|
*/
|
|
package slices
|