add convolve command

This commit is contained in:
filifa
2026-01-24 16:42:48 -05:00
parent afd8fe57da
commit ae253af15f
4 changed files with 174 additions and 11 deletions

View File

@@ -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)