How to struct Go native app like Go App Engine project?

141 views
Skip to first unread message

Nguyên Nguyễn Văn Cao

unread,
Jul 30, 2012, 11:47:09 AM7/30/12
to golan...@googlegroups.com
I have a simple appengine project:
app.yaml
yourapp/yourapp.go
package1/package1.go

The app just use std Go pkg and I just need to port it to the native app.
I want to keep the app struct so I can update both version quickly.
Does anyone know how to do it?
Thanks!

Kyle Lemons

unread,
Jul 30, 2012, 12:54:21 PM7/30/12
to Nguyên Nguyễn Văn Cao, golan...@googlegroups.com
If it was a standard Go HTTP-server based app, it should "just work."  If you want to also use appengine stuff, you'll need to create an abstraction layer to make it work on both sides.

Nguyên Nguyễn Văn Cao

unread,
Jul 30, 2012, 1:02:23 PM7/30/12
to Kyle Lemons, golan...@googlegroups.com
Sory for my bad English...
--
Sent from my mobile device

*Nguyễn Văn Cao Nguyên*
/**
* Contact : +84+935704595
* Blog : http://nguyen.hocvui.net
*/

Nguyên Nguyễn Văn Cao

unread,
Jul 30, 2012, 1:08:08 PM7/30/12
to Kyle Lemons, golan...@googlegroups.com
Sory for my bad English.
My issue is something about Go native app build rules:
'yourapp/yourapp.go' import 'pakage1'
How can I kepp the stuct of my project without changing the import statement?

DisposaBoy

unread,
Jul 30, 2012, 1:47:56 PM7/30/12
to golan...@googlegroups.com, Kyle Lemons


On Monday, July 30, 2012 6:08:08 PM UTC+1, Nguyên Nguyễn Văn Cao wrote:
Sory for my bad English.
My issue is something about Go native app build rules:
'yourapp/yourapp.go' import 'pakage1'
How can I kepp the stuct of my project without changing the import statement?


put them at the top level of your GOPATH

src/yourapp/yourapp.go
src/package1/package1.go 
Reply all
Reply to author
Forward
0 new messages