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

Function cloneStringPtr

internal/api/core/network.go:832–838  ·  view source on GitHub ↗
(value *string)

Source from the content-addressed store, hash-verified

830}
831
832func cloneStringPtr(value *string) *string {
833 if value == nil {
834 return nil
835 }
836 copyValue := strings.TrimSpace(*value)
837 return &copyValue
838}
839
840func cloneTimePtr(value *time.Time) *time.Time {
841 if value == nil {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected