Go bindings for the Chromium Embedded Framework (CEF)
These are simple bindings for CEF C API
in Go.
It’s not documented yet, but you can follow the example to figure out how to use. It’s pretty simple.
In order to run the examples, the CEF supporting files must be placed beside the executable.
This lib is compiled against CEF 94.4.9+g09ee681+chromium-94.0.4606.71 / Chromium 94.0.4606.71 from https://cef-builds.spotifycdn.com/index.html
Because i don’t have the opportunity to test cefgo on a mac i need your help. Theoretically cefgo should compile on macOS. Because macOS is different the application needs a bit more preperation.
Please read the CEF Wiki carefully and set up your enviroment. Feel free to share your experience.
Callbacks need to be registered before browsers are created. Currently only basic type conversions are supported (undefined/null, bool, int/uint, double, string).
Objects and Arrays are possible, but not done. If you are running in multi-process mode (the default - as opposed to single-process) keep in mind the callback will be executed in the browser process and not in the main process.
Set the a RemoteDebuggingPort
in the Settings
struct. Start your application and point your browser to http://127.0.0.1:<port>
.
The process for updating CEF to a newer version is relatively simple.
go clean -cache -testcache && CGO_ENABLED=1 go build -o Release/test.exe examples/main.go