kittenipc/example/golang/tsapi.gen.go
2025-10-25 13:09:27 +03:00

29 lines
472 B
Go

// Code generated by kitcom. DO NOT EDIT.
package main
import (
kittenipc "efprojects.com/kitten-ipc"
"fmt"
)
type callable interface {
Call(method string, params ...any) (kittenipc.Vals, error)
}
type TsIpcApi struct {
Ipc callable
}
func (t *TsIpcApi) Div(
a int, b int,
) (
int, error,
) {
results, err := t.Ipc.Call("TsIpcApi", "Div", a, b)
if err != nil {
return 0, fmt.Errorf("call to TsIpcApi.Div failed: %w", err)
}
return results[0].(int), nil
}