[go-nuts] reflect, is it possible to get the [body + sign] of a func as text at runtime ?

2016-09-18 Thread 'Mihai B' via golang-nuts
The body is compiled so you can't get it via reflection.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: The site at localhost:1234 can't be reached.

2016-09-18 Thread lochbm
Thank you everyone.

On Saturday, September 17, 2016 at 10:50:03 PM UTC+3, loc...@gmail.com 
wrote:
>
> Hello everyone,
>
> I am using Go version 1.7.1 on a 32-bit version of Windows 10 and cannot 
> view the contents of the address localhost:1234. 
> I created a server at the aforementioned address or at least, I think I 
> did and get nothing but an error message when I try to open my browser.
>
> Here's my code:
>
> package main
> import (
> "io"
> "net/http"
> "log"
> )
> func main(){
> http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request){
> io.WriteString(w, "Golang web development")
> log.Fatal(http.ListenAndServe("localhost:1234", nil))
> })
> }
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Install vim-go as a pacakge in vim 8

2016-09-18 Thread Johann Höchtl
I installed vim 8 using this ppa 
ppa:jonathonf/vim

(seen on 
http://tipsonubuntu.com/2016/09/13/vim-8-0-released-install-ubuntu-16-04/)

I cloned vim-go according to https://github.com/fatih/vim-go#install (Vim 
packages, http://vimhelp.appspot.com/repeat.txt.html#packages)

The install simply says: For other plugin managers add the appropriate 
lines and execute the plugin's install command

I thought Vim 8 packages are all automatic. vim-go commands like :help 
vim-go or :GoUpdateBinaries do not work.

How to install the package with Vim 8?

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: reflect, is it possible to get the [body + sign] of a func as text at runtime ?

2016-09-18 Thread mhhcbon
Hi,

 thanks both of you for your confirmation.

I ll evaluate alternatives.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-nuts] differences between pointer and value slice in for-range loop

2016-09-18 Thread Marvin Stenger
https://play.golang.org/p/9LQMDrDIOv should work.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-nuts] differences between pointer and value slice in for-range loop

2016-09-18 Thread Marvin Stenger
https://play.golang.org/p/bVizbGIMDp should work

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-nuts] Base58check to decimal

2016-09-18 Thread Nosferatu fist

hello how to add the decimal bitcoin addresses on directory.io

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-nuts] Support of diffie-hellman-group-exchange-sha1

2016-09-18 Thread Wojciech S. Czarnecki
Dnia 2016-09-18, o godz. 01:20:12
Matt Harden  napisał(a):

> Why use that when ecdh is apparently more secure? https://weakdh.org/

E.g. to get a not too old device (its software) talk to golang backend?
Or to got golang gatherer log in not too old mid-range network gear?
Or to let your golang software get a govt mandated certification/clearence?
Or ...

> > I am trying to use the exchange algorithm called
> > "diffie-hellman-group-exchange-sha1" It looks like Go does not support it

-- 
Wojciech S. Czarnecki
   ^oo^ OHIR-RIPE

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [go-nuts] Compiler plugins or something?

2016-09-18 Thread Ian Byrd
Ian, how would you comment this: https://tip.golang.org/pkg/plugin/?

On Wed, 31 Aug 2016 at 21:04 Samuel Tan  wrote:

> Got it. Thanks for the quick follow-up, Ian.
>
> On Wed, Aug 31, 2016 at 11:00 AM, Ian Lance Taylor 
> wrote:
>
>> On Wed, Aug 31, 2016 at 10:31 AM, samueltan via golang-nuts
>>  wrote:
>> > May I know what the status of compiler plugins are as of Go 1.7? I'm
>> hoping
>> > to add an additional stage of static checking to the Go compilation
>> process,
>> > and the only way to do this right now seems to be to write a go vet
>> check.
>>
>> The status is unchanged.  There is no support for compiler plugins and
>> no plans for them.  I make no promise that the Go compiler will ever
>> support plugins.  I think an external program, along the lines of go
>> vet, is the right approach to use for additional static checking.
>>
>> Ian
>>
>>
>> > On Wednesday, October 7, 2015 at 9:59:26 AM UTC-7, Ian Lance Taylor
>> wrote:
>> >>
>> >> On Wed, Oct 7, 2015 at 8:09 AM, Ilya Kowalewski
>> >>  wrote:
>> >> > I am asking, cos compiler plugins and related seems like a subject
>> of a
>> >> > deep
>> >> > discussion: some people might not like the whole idea of intervening
>> the
>> >> > compile process. Even now I can see people complaining about any
>> plugin
>> >> > functionality. E.g: "you won't be able to compile some software
>> straight
>> >> > away with go-get if it depends on some compiler plugins" and etc
>> >>
>> >> I see, sorry.  I was answering about plugins in general, and you are
>> >> asking specifically about compiler plugins.  I think we are a long way
>> >> from even considering the possibility of compiler plugins.  And I
>> >> don't really understand the point of supporting plugins in something
>> >> like the Go compiler, which is fast to build and which can in
>> >> principle be split up into packages that people can call directly.
>> >>
>> >> Ian
>> >>
>> >> > On Wed, 7 Oct 2015 at 17:28 Ian Lance Taylor 
>> wrote:
>> >> >>
>> >> >> On Wed, Oct 7, 2015 at 6:50 AM, Ilya Kowalewski
>> >> >>  wrote:
>> >> >> > I'd love to, but this seems to be an incredibly complicated
>> subject,
>> >> >> > which
>> >> >> > requires a correponding level of expertise. Is it ok to file a
>> >> >> > proposal
>> >> >> > /
>> >> >> > ask for help or expertise in the meantime?
>> >> >>
>> >> >> I think people are aware of the issue.  There is a proposed
>> interface
>> >> >> at https://golang.org/s/execmodes .  I don't think we need a
>> separate
>> >> >> proposal or anything.
>> >> >>
>> >> >> Ian
>> >> >
>> >> > --
>> >> > Talk is cheap. Show me the code.
>> >
>> > --
>> > 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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: text/html template extend not override

2016-09-18 Thread MinervaData
Any help/ideas?

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: Websocket's (RFC6455) fate after HTTP/2??

2016-09-18 Thread cafxx
How is this related to golang?

On Sunday, September 18, 2016 at 4:50:03 AM UTC+9, Srivathsan Madhavan 
wrote:
>
> Hi all,
>
> My apologies; I very well understand that the answers to my question here 
> could be subjective / opinions yet I would like to know if I could really 
> continue banking on this Websockets.
>
> I feel Websockets is really cool and I have used it for IPC between 
> non-web applications.  Certainly it is much more refined than raw TCP/IP 
> sockets.  But I am also coming across quite a few posts (after googling) 
> that spell doom for Websockets after HTTP/2.  But there also some posts 
> which seem favourable to it.  Just wanted to know this group's view as well
>
> Thanks and rgds,
> Vatsan
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] "gcc": executable file not found in %PATH%

2016-09-18 Thread lochbm
Hello again. I am trying to connect to a SQLite database with the package # 
github.com/mattn/go-sqlite3 and get the aforementioned error whenever I 
attempt to run my program. I am running a 32-bit Windows 10 OS and version 
1.7.1 of GoLang.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] Re: "gcc": executable file not found in %PATH%

2016-09-18 Thread Ain
esmaspäev, 19. september 2016 8:48.37 UTC+3 kirjutas loc...@gmail.com:
>
> Hello again. I am trying to connect to a SQLite database with the package 
> # github.com/mattn/go-sqlite3 and get the aforementioned error whenever I 
> attempt to run my program. I am running a 32-bit Windows 10 OS and version 
> 1.7.1 of GoLang.
>
 
In the very top of the readme:

<<*go-sqlite3* is *cgo* package. If you want to build your app using 
go-sqlite3, you need gcc. However, if you install *go-sqlite3* withgo 
install github.com/mattn/go-sqlite3, you don't need gcc to build your app 
anymore.>> 

So how did you install the go-sqlite3 , 
using "go get..." or "go install..."?


HTH
ain

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.