k3s/vendor/github.com/bhendo/go-powershell/utils/quote.go
Darren Shepherd d246c89254 go mod vendor
2019-09-05 15:16:39 -07:00

10 lines
179 B
Go

// Copyright (c) 2017 Gorillalabs. All rights reserved.
package utils
import "strings"
func QuoteArg(s string) string {
return "'" + strings.Replace(s, "'", "\"", -1) + "'"
}