add convolve command
This commit is contained in:
@@ -17,7 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"fmt"
|
||||
"os"
|
||||
"strconv"
|
||||
@@ -29,16 +28,6 @@ import (
|
||||
|
||||
var shoelaceFile string
|
||||
|
||||
func splitLines(file *os.File) []string {
|
||||
slice := make([]string, 0)
|
||||
scanner := bufio.NewScanner(file)
|
||||
for scanner.Scan() {
|
||||
slice = append(slice, scanner.Text())
|
||||
}
|
||||
|
||||
return slice
|
||||
}
|
||||
|
||||
func readFromFile(filepath string) ([]lib.Point, error) {
|
||||
points := make([]lib.Point, 0)
|
||||
file, err := os.Open(filepath)
|
||||
|
||||
Reference in New Issue
Block a user