diff options
author | Kurt Jung <kurt.w.jung@gmail.com> | 2015-07-04 13:18:12 -0400 |
---|---|---|
committer | Kurt Jung <kurt.w.jung@gmail.com> | 2015-07-04 13:18:12 -0400 |
commit | 1d655638f9c01bdf29aaee195a6628e79f963cfb (patch) | |
tree | 18d446216908d4bbddde478010c9052c6ad870ee /util.go | |
parent | 5ab948816dec877984e3c1c031f423cb7fccf30f (diff) | |
parent | f0690e7eabd6a1dc812923ce417ebdb7da490f14 (diff) |
Claudio Felber's dashed line implementation
Diffstat (limited to 'util.go')
-rw-r--r-- | util.go | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |