Skip to content

Commit

Permalink
Hide "invoke" method of functioncall
Browse files Browse the repository at this point in the history
  • Loading branch information
otiai10 committed Sep 11, 2023
1 parent 1097caf commit c251a3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functioncall/invoke.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ type Invocation interface {
}

func (funcs Funcs) Call(invocation Invocation) string {
b, err := json.Marshal(funcs.Invoke(invocation))
b, err := json.Marshal(funcs.invoke(invocation))
if err != nil {
return err.Error()
}
return string(b)
}

func (funcs Funcs) Invoke(invocation Invocation) any {
func (funcs Funcs) invoke(invocation Invocation) any {
f, ok := funcs[invocation.Name()]
if !ok {
return fmt.Sprintf("function not found: %s", invocation.Name())
Expand Down

0 comments on commit c251a3c

Please sign in to comment.