Some ToString functionality

This commit is contained in:
2022-09-10 19:50:18 -04:00
parent b3e2d9f822
commit 3635eef15a
4 changed files with 86 additions and 21 deletions

View File

@@ -1,6 +1,7 @@
package analyzer
import "os"
import "fmt"
import "path/filepath"
// import "git.tebibyte.media/arf/arf/types"
import "git.tebibyte.media/arf/arf/parser"
@@ -104,3 +105,12 @@ func (analyzer *AnalysisOperation) fetchSection (
analyzer.currentSection = previousSection
return
}
func doIndent (indent int, input ...any) (output string) {
for index := 0; index < indent; index ++ {
output += "\t"
}
output += fmt.Sprint(input...)
return
}