Code Monkey home page Code Monkey logo

go-webkit's Introduction

go-webkit

WHATS:

Go bindings for WebKit

SCREENSHOT:

Go WebKit!

INSTALL:

To experiment with go-webkit, you can just compile and run the example program:

go run example/webview.go

LICENSE:

The library is available under the same terms and conditions as the Go, the BSD style license, and the LGPL (Lesser GNU Public License). The idea is that if you can use Go (and Gtk, or WebKit) in a project, you should also be able to use go-gtk or go-webkit.

AUTHORS:

  • Yasuhiro Matsumoto

GOAL:

Hopefully support following widgets and methods enough to run general application.

go-webkit's People

Contributors

mattn avatar sg3des avatar sqs avatar taruti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

go-webkit's Issues

Submodule `docs` refers to a commit that does not exist

The docs submodule refers to a commit that does not exist. Running go get github.com/mattn/go-webkit/webkit gives this error:

# cd /home/paul/Projects/Go/src/github.com/mattn/go-webkit; git submodule update --init --recursive
Submodule 'docs' ([email protected]:mattn/go-webkit.git) registered for path 'docs'
Cloning into 'docs'...
fatal: reference is not a tree: 5efd786f11c1579f4ac0c8d3b1e49516ca4c1ed4
Unable to checkout '5efd786f11c1579f4ac0c8d3b1e49516ca4c1ed4' in submodule path 'docs'
package github.com/mattn/go-webkit/webkit: exit status 1

Webview example doesn't open

As given in the readme I ran go run examples/webview.go. It compiles correctly.... But during runtime it throws error : Vector smash protection is enabled.
Here is the total error

Vector smash protection is enabled.
fatal error: unexpected signal during runtime execution
[signal 0xb code=0x1 addr=0x8 pc=0x7fa3f2a9fb3a]

runtime stack:
runtime.throw(0x63e900, 0x2a)
    /usr/local/go/src/runtime/panic.go:527 +0x90
runtime.sigpanic()
    /usr/local/go/src/runtime/sigpanic_unix.go:12 +0x5a

goroutine 1 [syscall, locked to thread]:
runtime.cgocall(0x54a9b0, 0xc820051d18, 0xc800000000)
    /usr/local/go/src/runtime/cgocall.go:120 +0x11b fp=0xc820051ce8 sp=0xc820051cb8
github.com/mattn/go-gtk/glib._Cfunc__g_object_set_addr(0x2493290, 0x25676e0, 0xc82000a420)
    ??:0 +0x35 fp=0xc820051d18 sp=0xc820051ce8
github.com/mattn/go-gtk/glib.(*GObject).Set(0xc820032078, 0x603050, 0x9, 0x5b5760, 0xc82000e3a0)
    /home/aki237/gospace/src/github.com/mattn/go-gtk/glib/glib.go:598 +0x784 fp=0xc820051e58 sp=0xc820051d18
main.main()
    /home/aki237/gospace/src/github.com/mattn/go-webkit/example/webview.go:77 +0x87d fp=0xc820051f50 sp=0xc820051e58
runtime.main()
    /usr/local/go/src/runtime/proc.go:111 +0x2b0 fp=0xc820051fa0 sp=0xc820051f50
runtime.goexit()
    /usr/local/go/src/runtime/asm_amd64.s:1721 +0x1 fp=0xc820051fa8 sp=0xc820051fa0

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
    /usr/local/go/src/runtime/asm_amd64.s:1721 +0x1

Example Crashes when Trying to Load Webpage

This is mostly an FYI. When I try to navigate to google's website, the application crashes.
I cannot run the example on Ubuntu 11.04.
Go version weekly.2011-09-01 9627

(<unknown>:28132): libsoup-CRITICAL **: soup_message_set_first_party: assertion `first_party != NULL' failed
(<unknown>:28132): libsoup-CRITICAL **: soup_message_set_first_party: assertion `first_party != NULL' failed
(<unknown>:28132): libsoup-CRITICAL **: soup_message_set_first_party: assertion `first_party != NULL' failed
SIGTRAP: trace trap
PC=0x402231

goroutine 1 [syscall]:
github%2ecom/mattn/go-gtk/gtk._Cfunc_gtk_main(0x40121f, 0x4970cc)
    /home/grey/goproj/go-gtk/gtk/_obj/_cgo_defun.c:6738 +0x2f
github%2ecom/mattn/go-gtk/gtk.Main()
      /home/grey/go-gtk/gtk/_obj/gtk.cgo1.go:-270 +0x18
main.main()
    /home/grey/workspace/Go4/src/cmd/go4.go:77 +0x61f
rax     0x402221
...

Strange error on OS X

When I try to run example on OS X I get this strange error

# command-line-arguments
HEADR too small: 4184 > 4096

Has anyone managed to get it to work on OS X?

Example crashes while loading golang.org and some other pages

I just tried to run the example. While loading the default url http://golang.org it crashes with the following trace pasted bellow. A quick change of the uri will give me the chance to browse, though there are a lot of pages which lead to such a crash. The same happens if I try to load a string.

...$ ./example 
No bp log location saved, using default.
runtime: split stack overflow: 0x18266b8 < 0x7fdc6d852000
fatal error: runtime: split stack overflow

goroutine 1 [syscall]:
[fp=0x7fdc6d852ea0] return()
    /usr/lib/go/src/pkg/runtime/asm_amd64.s:508
[fp=0x7fdc6d852ee8] runtime.cgocall(0x439b90, 0x7fdc6d852f00)
    /usr/lib/go/src/pkg/runtime/cgocall.c:162 +0x128
[fp=0x7fdc6d852f00] github.com/mattn/go-gtk/gtk._Cfunc_gtk_main(0x4405d2)
    github.com/mattn/go-gtk/gtk/_obj/_cgo_defun.c:4610 +0x2f
[fp=0x7fdc6d852f08] github.com/mattn/go-gtk/gtk.Main()
    github.com/mattn/go-gtk/gtk/_obj/_cgo_gotypes.go:4023 +0x18
[fp=0x7fdc6d852f90] main.main()
    /home/s0x/workspace/go/src/github.com/mattn/go-webkit/example/webview.go:89 +0x6f2
[fp=0x7fdc6d852fb8] runtime.main()
    /usr/lib/go/src/pkg/runtime/proc.c:182 +0x92
[fp=0x7fdc6d852fc0] runtime.goexit()
    /usr/lib/go/src/pkg/runtime/proc.c:1223

goroutine 2 [syscall]:
java version "1.7.0_40"
OpenJDK Runtime Environment (IcedTea 2.4.1) (ArchLinux build 7.u40_2.4.1-1-x86_64)
OpenJDK 64-Bit Server VM (build 24.0-b50, mixed mode)

JS or document access ?

Hi,
At first, great job ! I tried a lot go-webkit and it works like a charm.

I'm currently working on a project that uses webkit in my application. I'm seeking solutions to link javascript and go application (events ? getting element and read values ?) and I don't find how to do.

Is there any way to do that job ?

Thanks a lot

make error

hi

 i try to make on osx 10.6,but it tell me error.

 error message :

 CGOPKGPATH=github.com/mattn/go-webkit cgo --  webkit.go

webkit.go: unsupported #cgo option pkg-config
make: *** [_obj/_cgo_run] Error 2

 how can i fixed it?

regards

Minimal example crashes with Go 1

package main

import (
    "github.com/mattn/go-gtk/gtk"
    "github.com/mattn/go-webkit/webkit"
    )

func main() {
    gtk.Init(nil)
    println("Before crash")
    wv := webkit.WebView()
    _ = wv
    gtk.Main()
}

Crashes with Go1. Amd64 Ubuntu 12.04.

Before crash
runtime: signal received on thread not created by Go.
Segmentation fault (core dumped)

Gdb just shows

GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /home/taruti/go-work/src/bitbucket.org/taruti/webtest/webtest...done.
Loading Go Runtime support.
(gdb) run
Starting program: /home/taruti/go-work/src/bitbucket.org/taruti/webtest/webtest
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffeaba2700 (LWP 30439)]
[New Thread 0x7fffe989c700 (LWP 30440)]
[New Thread 0x7fffe8f9b700 (LWP 30441)]
[New Thread 0x7fffa3ffd700 (LWP 30442)]
[New Thread 0x7fffa37fc700 (LWP 30444)]
[New Thread 0x7fffa2ffb700 (LWP 30445)]
runtime: signal received on thread not created by Go.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffa3ffd700 (LWP 30442)]
runtime.sigtramp () at /build/buildd/golang-1/src/pkg/runtime/sys_linux_amd64.s:168
168 /build/buildd/golang-1/src/pkg/runtime/sys_linux_amd64.s: No such file or directory.
(gdb) bt
#0  runtime.sigtramp () at /build/buildd/golang-1/src/pkg/runtime/sys_linux_amd64.s:168
#1  0x000000000041631c in runtime.sigtramp () at /build/buildd/golang-1/src/pkg/runtime/sys_linux_amd64.s:182
#2  0x0000000000000000 in ?? ()
(gdb) q

http://code.google.com/p/go/issues/detail?id=3250 is probably related.

More Libsoup

Hi.
Ii got an implementation made in C with webkit and made a hevy use of LibSoup inside of it (connecting to the events) your GObject interfere got an Conecct method but im puzzled on how to get the content I normally get with the C api, I mean something like thins:

g_signal_connect(Work->MainSoup,"request-queued",G_CALLBACK(callback_request_enviado),Work);

Then I define my callback
static void callback_request_enviado(SoupSession *session,SoupMessage *msg,gpointer user_data);

in that session and message i want to get more info but looks like this implementation lacks of more LibSoup binds.And Im new in Go and this is the first thing im looking that uses CGo, so its very hard for me.

Any advice will be helpful.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.