libgocryptfs/internal/nametransform/raw64_go1.4.go
Jakob Unterwurzacher d15122d3d6 Add Go 1.4 compatibility layer for raw64
Using raw64 will not work, but at least it will compile.
2016-11-01 19:25:59 +01:00

19 lines
291 B
Go

//+build !go1.5
package nametransform
import (
"encoding/base64"
"log"
)
const (
HaveRaw64 = false
)
func getRaw64Encoding() *base64.Encoding {
log.Panicf("Tried to use base64.RawURLEncoding but your Go version does not provide it.\n" +
"You need Go 1.5 or higher.")
return nil
}