#Encapsulating a string

2 messages · Page 1 of 1 (latest)

lethal saddle
#

I want this string fmt.Sprintf("controller.nodeSelector.kubernetes\\.io/os=linux") to be encapsulated and for Go to ignore the \\. Would putting it in a Sprintf achieve that, or do I need to put it into another String function?

snow minnow
#

i'm not really following what you mean by "encapsulated" here. could you phrase it differently or provide an example?