gopkg.in/easygen.v4@v4.1.0/tf-calc.go (about) 1 package easygen 2 3 //========================================================================== 4 // template function for calculations 5 6 // By Caleb Spare @gmail.com 7 // https://groups.google.com/d/msg/golang-nuts/gzAyBLAeUbU/LwgomgxcjQ8J 8 9 // Get input less 1 10 func minus1(n int) int { return n - 1 }