Matt Bolt 1 год назад
Родитель
Сommit
7d073bd337
1 измененных файлов с 0 добавлено и 16 удалено
  1. 0 16
      core/pkg/opencost/common.go

+ 0 - 16
core/pkg/opencost/common.go

@@ -1,16 +0,0 @@
-package opencost
-
-// Pair is a generic struct containing a pair of instances, one of each type similar to std::pair
-type Pair[T any, U any] struct {
-	First  T
-	Second U
-}
-
-// Creates a new pair struct containing the provided parameters. This is useful for creating types
-// capable of representing common paired types (result, error), (result, bool), etc...
-func NewPair[T any, U any](first T, second U) Pair[T, U] {
-	return Pair[T, U]{
-		First:  first,
-		Second: second,
-	}
-}