Re: [go-nuts] go module & local package

2019-10-08 Thread Dimas Prawira
Let me define this first modules are collections of packages. In Go 11, I use go modules like the following: If both packages are in the same project, you could just do the following: In go.mod: module github.com/userName/moduleName and inside your mai

[go-nuts] go module & local package

2019-10-08 Thread Henry
Hi, I am having trouble trying to migrate from gopath to go module. Some of my packages reside in my local machine and are not published. So how do you get go module to import local-machine packages? The second question is that do the dependencies need to use go module as well? Do you need

Re: [go-nuts] json time format discrepancy

2019-10-08 Thread Jakob Borg
On 8 Oct 2019, at 19:27, Andrey Tcherepanov mailto:xnow4fippy...@sneakemail.com>> wrote: In this case it loses subsecond precision, and it just bit me (doctor says I will live). Is it a bug or some historically-important reasons that I am missing are in play there? I don't see this discrepanc

Re: [go-nuts] [ANN] Go Server Pages

2019-10-08 Thread Dimas Prawira
Nice work... Best regards On Wed, Oct 9, 2019, 12:16 AM Scott Pakin wrote: > I'm excited to announce the initial release of > > Go Server Pages > > Go Server Pages is an Apache module that lets you embed Go code within a > Web page. The Go code gets executed dynamically server-side. Here's a

[go-nuts] json time format discrepancy

2019-10-08 Thread Andrey Tcherepanov
Fellas, Would someone kind to point me to a reasoning behind "func (t Time) MarshalJSON() ([]byte, error)" use "time.RFC3339Nano" formatting to spit out time in JSON, and "func (t *Time) UnmarshalJSON(data []byte) error " uses "time.RFC3339" to parse the same timestamp? I do expect serializati

[go-nuts] [ANN] Go Server Pages

2019-10-08 Thread Scott Pakin
I'm excited to announce the initial release of Go Server Pages Go Server Pages is an Apache module that lets you embed Go code within a Web page. The Go code gets executed dynamically server-side. Here's a quick example: Test of Go Server Pages You should https://gos

Re: [go-nuts] Compile Go application with multiple versions of C library

2019-10-08 Thread Robert Engels
You can create Go plugins too. > On Oct 8, 2019, at 7:57 AM, Vitaly Isaev wrote: > >  > Suggest we're implementing a very specific Go application like data migrator > (for example, the one that transfers data from old database to new database > with different data types). Therefore, this app

[go-nuts] Compile Go application with multiple versions of C library

2019-10-08 Thread Vitaly Isaev
Suggest we're implementing a very specific Go application like data migrator (for example, the one that transfers data from old database to new database with different data types). Therefore, this application must be compiled with two different versions of one library (e.g. v1 and v2). It seems

[go-nuts] Re: Full Commit Hashes in go.mod

2019-10-08 Thread anderson . queiroz
Hi Pranay, There is no option to change the pseudo-version format. However the last part is the prefix of the commit hash. You can see more here in the docs . Regarding to ask for this feature, you can file a issue on Go's github