Improved documentation

This commit is contained in:
Eduard Urbach 2024-06-02 15:20:05 +02:00
parent b72e3943a4
commit ec20fd3d3a
Signed by: eduard
GPG key ID: 49226B848C78F6C8
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"