On Wed, Apr 10, 2019 at 7:23 PM Dumitru Ungureanu <itmit...@gmail.com> wrote:
>
> In this particular case, w.DefineFunction Api does not acomodate such a 
> passing.

Please explain why and/or what do you mean by that as I don't see
where/what the problem is.

> Reason I asked in the first place. Dependency injection of what sort can be 
> used here...

Dependency injection is just an artificially invented name for passing
an argument, which is what I suggested earlier.

Let me anyway guess: Is closure possibly a solution to the problem?

w.DefineFunction("goConect", func(vals ...*sciter.Value) *sciter.Value {
        fmt.Print(vals)
        w.LoadFile("this://app/cauta.html")
        return nil
} )

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to