summaryrefslogtreecommitdiff
path: root/pkg/pls
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/pls')
-rw-r--r--pkg/pls/option.go17
1 files changed, 0 insertions, 17 deletions
diff --git a/pkg/pls/option.go b/pkg/pls/option.go
deleted file mode 100644
index e4fb245..0000000
--- a/pkg/pls/option.go
+++ /dev/null
@@ -1,17 +0,0 @@
-package pls
-
-import "github.com/xlgmokha/x/pkg/x"
-
-type Option[T any] func(T) T
-
-func New[T any](options ...Option[T]) T {
- item := x.Default[T]()
- for _, option := range options {
- item = option(item)
- }
- return item
-}
-
-func Prepend[T any](rest []T, beginning ...T) []T {
- return append(beginning, rest...)
-}