add comments and new parameter id for client request order

This commit is contained in:
Adrian Zuercher
2025-05-04 20:55:58 +02:00
parent c7154f0779
commit e3487eb340
15 changed files with 119 additions and 79 deletions

View File

@@ -5,6 +5,7 @@ import (
"strings"
)
// Returns float32 type from type interface
func Float32From(v any) float32 {
switch val := v.(type) {
case bool:
@@ -44,6 +45,7 @@ func Float32From(v any) float32 {
}
}
// Returns float64 type from type interface
func Float64From(v any) float64 {
switch val := v.(type) {
case bool:
@@ -83,6 +85,7 @@ func Float64From(v any) float64 {
}
}
// Returns Int8 type from type interface
func Int8From(v any) int8 {
switch val := v.(type) {
case bool:
@@ -122,6 +125,7 @@ func Int8From(v any) int8 {
}
}
// Returns Int16 type from type interface
func Int16From(v any) int16 {
switch val := v.(type) {
case bool:
@@ -161,6 +165,7 @@ func Int16From(v any) int16 {
}
}
// Returns Int32 type from type interface
func Int32From(v any) int32 {
switch val := v.(type) {
case bool:
@@ -200,6 +205,7 @@ func Int32From(v any) int32 {
}
}
// Returns Int64 type from type interface
func Int64From(v any) int64 {
switch val := v.(type) {
case bool:
@@ -239,6 +245,7 @@ func Int64From(v any) int64 {
}
}
// Returns Uint8 type from type interface
func Uint8From(v any) uint8 {
switch val := v.(type) {
case bool:
@@ -278,6 +285,7 @@ func Uint8From(v any) uint8 {
}
}
// Returns Uint16 type from type interface
func Uint16From(v any) uint16 {
switch val := v.(type) {
case bool:
@@ -317,6 +325,7 @@ func Uint16From(v any) uint16 {
}
}
// Returns Uint32 type from type interface
func Uint32From(v any) uint32 {
switch val := v.(type) {
case bool:
@@ -356,6 +365,7 @@ func Uint32From(v any) uint32 {
}
}
// Returns Uint64 type from type interface
func Uint64From(v any) uint64 {
switch val := v.(type) {
case bool:
@@ -395,6 +405,7 @@ func Uint64From(v any) uint64 {
}
}
// Returns bool type from type interface
func BoolFrom(v any) bool {
switch val := v.(type) {
case bool: