Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
htaldo committed Dec 31, 2022
1 parent 048de4c commit 1e32095
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions text.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (point Point) Print() {
fmt.Println(str)
}

func readSegments(filename string) []Segment {
func ReadSegments(filename string) []Segment {
var segments []Segment
f, _ := os.Open(filename)
input := bufio.NewScanner(f)
Expand All @@ -52,7 +52,7 @@ func readSegments(filename string) []Segment {
return segments
}

func splitRow(row string, length int) []float64 {
func SplitRow(row string, length int) []float64 {
sarray := regexp.MustCompile("\t+").Split(row, -1)
var array []float64
var newnumber float64
Expand Down

0 comments on commit 1e32095

Please sign in to comment.