MCPcopy Create free account
hub / github.com/bricks-cloud/BricksLLM / ConvertToArrayOfStrings

Function ConvertToArrayOfStrings

internal/route/route.go:43–55  ·  view source on GitHub ↗
(input []any)

Source from the content-addressed store, hash-verified

41}
42
43func ConvertToArrayOfStrings(input []any) []string {
44 result := []string{}
45 for _, input := range input {
46 val, ok := input.(string)
47 if ok {
48 result = append(result, val)
49 continue
50 }
51 return []string{}
52 }
53
54 return result
55}
56
57func ConvertToMapOfIntegers(input any) map[string]int {
58 result := map[string]int{}

Callers 2

validateRouteMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected