Using client code from Go program, documentation or code examples

Is it possible/supported to use Tailscale’s client code from other software so that someone can write a Go program which connects to a Tailscale network without having to rely on an external process/daemon?

Is there documentation or code examples you could point me at?

Thanks.