skelterjohn / go.wde

Windows, drawing and events for Go
217 stars 46 forks source link

Creating a init package to load the default backend for the user platform. #10

Closed andrebq closed 12 years ago

andrebq commented 12 years ago

The old way to import the backend is to include 3 files in every project that uses go.wde one for each platform.

With this patch the user can simply import "github.com/skelterjohn/go.wde/init" and the right backend will be compiled.

If the user want to load a different backend he instead will load manually each backend (falling back to the old behaviour)

skelterjohn commented 12 years ago

ty