From 93779987c426b8c09d620aa6bc48b95ffbef282a Mon Sep 17 00:00:00 2001 From: Claudio Felber Date: Sat, 27 Jun 2015 13:01:14 +0200 Subject: Add SetDashPattern() method --- util.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'util.go') diff --git a/util.go b/util.go index d3b114f..ed4ffdd 100644 --- a/util.go +++ b/util.go @@ -69,6 +69,19 @@ func bufferFromReader(r io.Reader) (b *bytes.Buffer, err error) { return } +// Returns true if the two specified integer slices are equal +func slicesEqual(a, b []float64) bool { + if len(a) != len(b) { + return false + } + for i := range a { + if a[i] != b[i] { + return false + } + } + return true +} + // Returns a zlib-compressed copy of the specified byte array func sliceCompress(data []byte) []byte { var buf bytes.Buffer -- cgit v1.2.1-24-ge1ad