generic API support for the Go language