MCPcopy Create free account
hub / github.com/compozy/agh / optionalStringPtr

Function optionalStringPtr

internal/api/core/agent_channels.go:932–938  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

930}
931
932func optionalStringPtr(value string) *string {
933 trimmed := strings.TrimSpace(value)
934 if trimmed == "" {
935 return nil
936 }
937 return &trimmed
938}
939
940func stringPtrValue(value *string) string {
941 if value == nil {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected