This package wraps the Flutter embedder API in Go and adds some helper functions to work with it. This package does NOT contain any platform specific code (glfw, etc.) and may eventualy be used for platforms other than the ones targeted by go-flutter right now. Note that this package does not promise a stable API: types, functions, methods may all change in a breaking way.
To build this package set the CGO_LDFLAGS
and run go build
. For example:
On Linux:
export CGO_LDFLAGS="-L${HOME}/.cache/hover/engine/linux/"
go build
To build this package on Mac OS
export CGO_LDFLAGS="-F ${HOME}/Library/Caches/hover/engine/darwin"
go build
To build this package on Windows
set CGO_LDFLAGS="-L%HOMEPATH%/.cache/hover/engine/windows/"
go build
This works if hover has cached the flutter engine for the local user.