Added support for single file builds
This commit is contained in:
parent
d04c216dc2
commit
423526e567
4 changed files with 57 additions and 24 deletions
|
@ -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{}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue