MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / anyStringSlice

Function anyStringSlice

ui/fullscreen_backend.go:1485–1500  ·  view source on GitHub ↗
(value any)

Source from the content-addressed store, hash-verified

1483}
1484
1485func anyStringSlice(value any) []string {
1486 switch typed := value.(type) {
1487 case []string:
1488 return typed
1489 case []any:
1490 out := make([]string, 0, len(typed))
1491 for _, item := range typed {
1492 if s := stringFromAny(item); s != "" {
1493 out = append(out, s)
1494 }
1495 }
1496 return out
1497 default:
1498 return nil
1499 }
1500}
1501
1502func (b *FullscreenRendererBackend) renderScreen() {
1503 if !b.renderEnabled || !b.screenActive || b.out == nil {

Callers 1

FormatFullscreenModalFunction · 0.85

Calls 1

stringFromAnyFunction · 0.70

Tested by

no test coverage detected