Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/raff/ultralight-go

go 1.13
17 changes: 9 additions & 8 deletions ultralight.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,14 @@ static inline JSObjectRef make_function_callback(JSContextRef ctx, JSStringRef n
}
*/
import "C"
import "unsafe"
import "unicode/utf16"
import "unicode/utf8"
import "reflect"
import "bytes"

import "log"
import (
"bytes"
"log"
"reflect"
"unicode/utf16"
"unicode/utf8"
"unsafe"
)

type JSType int

Expand Down Expand Up @@ -315,7 +316,7 @@ func decodeJSString(s C.JSStringRef) string {
//
// Note: You should only create one of these per application lifetime.
func NewApp() *App {
return &App{app: C.ulCreateApp(C.ulCreateConfig()), windows: map[C.ULWindow]*Window{}}
return &App{app: C.ulCreateApp(C.ulCreateSettings(), C.ulCreateConfig()), windows: map[C.ULWindow]*Window{}}
}

// Destroy destroys the App instance.
Expand Down