diff options
author | Jakob Unterwurzacher | 2016-11-01 19:20:55 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-11-01 19:25:59 +0100 |
commit | d15122d3d6b67d42617ed9950ce5273d0dba64fd (patch) | |
tree | cf8928a9335ec7b1fea3e03fd8a32042a8485189 /internal/nametransform/raw64_go1.5.go | |
parent | f4c367381ea4884a9b460e073a7809665031a88c (diff) |
Add Go 1.4 compatibility layer for raw64
Using raw64 will not work, but at least it will compile.
Diffstat (limited to 'internal/nametransform/raw64_go1.5.go')
-rw-r--r-- | internal/nametransform/raw64_go1.5.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/internal/nametransform/raw64_go1.5.go b/internal/nametransform/raw64_go1.5.go new file mode 100644 index 0000000..aa7f7fd --- /dev/null +++ b/internal/nametransform/raw64_go1.5.go @@ -0,0 +1,15 @@ +//+build go1.5 + +package nametransform + +import ( + "encoding/base64" +) + +const ( + HaveRaw64 = true +) + +func getRaw64Encoding() *base64.Encoding { + return base64.RawURLEncoding +} |