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

Function truncateString

ui/runtime.go:967–973  ·  view source on GitHub ↗
(value string, limit int)

Source from the content-addressed store, hash-verified

965 }
966 return stringFromAny(field.Interface())
967}
968
969func fieldByNames(value reflect.Value, names ...string) reflect.Value {
970 for _, name := range names {
971 if field := value.FieldByName(name); field.IsValid() {
972 return field
973 }
974 }
975 return reflect.Value{}
976}

Callers 6

RenderEventMethod · 0.70
buildTaskBlocksMethod · 0.70
permissionModalStateMethod · 0.70
FormatToolResultEntryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected