harness-drone/vendor/github.com/Bugagazavr/go-gitlab-client/util.go
2015-09-29 17:34:44 -07:00

10 lines
161 B
Go

package gogitlab
import (
"net/url"
"strings"
)
func encodeParameter(value string) string {
return strings.Replace(url.QueryEscape(value), "/", "%2F", 0)
}