MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / sanitizeStringPointer

Method sanitizeStringPointer

api/pkg/requests/request.go:89–95  ·  view source on GitHub ↗
(value string)

Source from the content-addressed store, hash-verified

87}
88
89func (input *request) sanitizeStringPointer(value string) *string {
90 value = strings.TrimSpace(value)
91 if value == "" {
92 return nil
93 }
94 return &value
95}
96
97func (input *request) removeStringDuplicates(values []string) []string {
98 cache := map[string]struct{}{}

Callers 5

ToMessageSendParamsMethod · 0.80
ToMessageSendParamsMethod · 0.80
SanitizeMethod · 0.80
ToMessageSendParamsMethod · 0.80
ToMessageSendParamsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected