Archived
1
0
This repository has been archived on 2025-03-03. You can view files and clone it, but cannot push or open issues or pull requests.
Gastenboek/viewEntry.go
2013-10-21 21:34:21 +02:00

24 lines
379 B
Go

package main
import (
"fmt"
"os"
"path/filepath"
)
func listFiles(path string, info os.FileInfo, err error) error {
if !info.IsDir() {
fmt.Println(info.Name() + " - " + path)
}
return nil
}
func viewEntry() {
clear()
filepath.Walk(".", filepath.WalkFunc(listFiles))
fmt.Print("\nSelecteer hier welk bericht u graag zou willen lezen: ")
var i int
fmt.Scan(&i)
}