Skip to content

turutcrane/cefingo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cefingo

This is experimental go binding for CEF.

This library is build with `cef_binary_115.3.15+g21130e0+chromium-115.0.5790.173_windows64'.

Supported Environment

  • Windows 10 64bit
  • msys2/mingw64

How to Use

  1. Download Spotify's Autobuild Image (windos 64bit)

    https://cef-builds.spotifycdn.com/index.html#windows64

  2. Expand it.

  3. Copy library files and Resouce files to a Directory in PATH Envrironment Variable (eg. $GOPATH/bin).

    C:\> xcopy /e \path\to\expand_dir\Release \path\to\gopath\bin
    C:\> xcopy /e \path\to\expand_dir\Resources \path\to\gopath\bin
  4. create cefingo.pc file on PKG_CONFIG_PATH

    target=C:/path/to/gopath/bin
    libdir=${target}
    includedir=C:/path/to/expand_dir
    
    Name: cefingo
    Version: 0.1
    Description: cefingo
    Cflags: -I${includedir}
    Libs: -L${libdir} -lcef
    

Example

https://github.com/turutcrane/cefingo-sample

Caution

Some functions and methods of cef has thread constraint. Any functions and methods in this package are not disable goroutine preemption. So thread error may be produced.

License

This project is licensed under the MIT License.

This project quotes header files of the following third party libraries:

Thanks to https://github.com/cztomczak/cefcapi .