rings: WIP

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2024-05-19 02:11:02 +00:00
parent db92fffc56
commit 032273e67e
3 changed files with 183 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
package rings
import (
"syscall"
"darvaza.org/core"
)
func ErrOutOfRange[T ~int](value T, field string) error {
return core.Wrap(syscall.EINVAL, "%v: %s out of range", value, field)
}