Improved documentation

This commit is contained in:
2024-06-02 15:20:05 +02:00
parent a7afd680da
commit 8974b8b0aa
4 changed files with 12 additions and 5 deletions

View File

@ -12,7 +12,7 @@ import (
// Scan scans the directory.
func Scan(path string) (<-chan *Function, <-chan error) {
functions := make(chan *Function, 16)
functions := make(chan *Function)
errors := make(chan error)
go func() {

View File

@ -7,6 +7,7 @@ type InvalidDirectory struct {
Path string
}
// Error implements the text representation.
func (err *InvalidDirectory) Error() string {
if err.Path == "" {
return "Invalid directory"