libgocryptfs/internal/speed/speed_go1.4.go
Jakob Unterwurzacher 477071d673 speed: fix build for Go 1.4 and lower
Old Go versions miss cipher.NewGCMWithNonceSize, which causes:

  internal/speed/speed.go:95: undefined: cipher.NewGCMWithNonceSize
2017-02-23 00:04:51 +01:00

12 lines
136 B
Go

// +build !go1.5
package speed
import (
"fmt"
)
func Run() {
fmt.Printf("Compile with Go 1.5 or higher to run the benchmarks\n")
}