FAQ
Hi, try a package name other than 'test' for now.
gomobile bind internally creates a Go proxy package named "go_"+pkgname and
store the generated code in "go_"+pkgname+".go". Go build tool then treats
it as a test file.

I will fix it tomorrow.

2015-06-21 8:40 GMT-04:00 <evahlis@gmail.com>:
Hi,

I'm trying to create Android bindings for a very simple test library, and
getting the following error output:
write
/var/folders/cd/6r2497dd2_jb1_frk6z9p2km0000gn/T/gomobile-bind-work-005850398/go_test/go_test.go
write
/var/folders/cd/6r2497dd2_jb1_frk6z9p2km0000gn/T/gomobile-bind-work-005850398/androidlib/main.go
runtime

_/var/folders/cd/6r2497dd2_jb1_frk6z9p2km0000gn/T/gomobile-bind-work-005850398/go_test
go build
_/var/folders/cd/6r2497dd2_jb1_frk6z9p2km0000gn/T/gomobile-bind-work-005850398/go_test:
no buildable Go source files in
/var/folders/cd/6r2497dd2_jb1_frk6z9p2km0000gn/T/gomobile-bind-work-005850398/go_test
errors
sync/atomic
unicode
unicode/utf8
math
golang.org/x/mobile/app/internal/callfn
runtime/cgo
sync
io
syscall
bytes
bufio
unicode/utf16
time
strconv
os
reflect
fmt
golang.org/x/mobile/gl
golang.org/x/mobile/geom
log
golang.org/x/mobile/bind/seq
golang.org/x/mobile/event
golang.org/x/mobile/bind/java
golang.org/x/mobile/app
gomobile: exit status 1

The code of the library is the following:

package test


import (
"fmt"
)


type MyStruct struct {
key string
}


func (m *MyStruct) GetKey() string {
return m.key
}


func MyFunc() {
fmt.Println("hello")
}


Any insight would be appreciated!

--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
__

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 2 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedJun 21, '15 at 2:06p
activeJun 21, '15 at 4:30p
posts2
users2
websitegolang.org

2 users in discussion

Evahlis: 1 post Hyang-Ah Hana Kim: 1 post

People

Translate

site design / logo © 2022 Grokbase