Added support for single file builds

This commit is contained in:
Eduard Urbach 2024-06-12 12:10:29 +02:00
parent d04c216dc2
commit 423526e567
Signed by: eduard
GPG key ID: 49226B848C78F6C8
4 changed files with 57 additions and 24 deletions

View file

@ -5,8 +5,7 @@ import (
)
// Compile compiles all the functions.
func Compile(directory string) (map[string]*Function, error) {
functions, errors := Scan(directory)
func Compile(functions <-chan *Function, errors <-chan error) (map[string]*Function, error) {
wg := sync.WaitGroup{}
allFunctions := map[string]*Function{}