Search Discussions
-
Hi, There are many use cases when you have to interrupt go func() {io.Copy(dst,src)}(). I've googled but still didn't find any solution on how to implement that. In my case I close writer ...
Kay ru
Apr 13, 2016 at 3:59 pm
Apr 19, 2016 at 5:48 pm -
Hi, I am looking to acquire a new PC for the purpose of experimenting with Google Go. More specifically, I am trying to develop a Go version of NLTK (the Natural Language Tool Kit) which would be ...
Serge Hulne
Apr 8, 2016 at 12:34 pm
Apr 10, 2016 at 2:00 pm -
Hello, all. There is atomic.StorePointer and atomic.LoadPointer, which could be used for... it is obvious what for `chan` and `map` are internally just a pointers, but there is not way to convert ...
Sokolov Yura
Apr 26, 2016 at 11:03 am
Apr 27, 2016 at 7:15 am -
I'm far from a noob with Go, but I just don't understand this panic, please help. How is is possible to get a panic on the 2nd of these two lines: nil reference q := traversal.query for vtx, := range ...
Alex B
Apr 22, 2016 at 11:44 am
Apr 22, 2016 at 9:10 pm -
Hi all, In the following program, the global variable "a" will be "shadowed" by local "a": import ( "fmt" ) var a int func main() { a := 1 fmt.Println(a) } So is there any method to access the ...
Nan Xiao
Apr 15, 2016 at 9:02 am
Apr 16, 2016 at 10:11 am -
Indeed "iface" would have been nice. -- 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 ...
Marvin Stenger
Apr 15, 2016 at 8:17 pm
Apr 19, 2016 at 3:40 pm -
I have a server behind Cloudflare that sees 175 @ 0x44fc10 0x44ab2c 0x44a2ff 0x4e1cee 0x4e1d4a 0x4e3323 0x4f3493 0x5d3fc7 0x5d4484 0x5d786b 0x54948c 0x6aaca1 0x6ab86b 0x6ab9da 0x6ee432 0x6ee251 ...
Matt Joiner
Apr 26, 2016 at 11:30 am
May 16, 2016 at 6:06 am -
Hi, I'm having the following issue with vendors. I'd like to do a format operation on the whole project in an automated way. However, the solution proposed here[1] by +rsc go test $(go list ./... | ...
Florin Pățan
Apr 14, 2016 at 10:32 pm
Apr 15, 2016 at 8:46 pm -
Is it possible to use the new 1.6 HTTP/2 support without TLS? I'd like to use the protocol over a tunnel that is already secure. -- You received this message because you are subscribed to the Google ...
Jonathan Gaillard
Apr 1, 2016 at 3:06 pm
Apr 10, 2016 at 6:34 am -
15
[go-nuts] Is it bad to create an array on the main thread, but edit it's elements on another thread?
I'm making a server for a game, and I currently have an array of entities created on the main thread, looks like this var entities = make(map[string]*Entity) So my issue now is that I have to loop ...Zacharyholland
Apr 2, 2016 at 8:10 pm
Apr 6, 2016 at 11:08 pm -
We are building a server that uses large amounts of memory. To help with memory usage, we pre-allocate a set number of pages of fixed length when the server starts. As the server runs, pages can be ...
Travis Keep
Apr 26, 2016 at 12:44 am
May 27, 2016 at 10:57 am -
In package sync's document: Values containing the types defined in this package should not be copied. -- You received this message because you are subscribed to the Google Groups "golang-nuts" ...
Approaching
Apr 7, 2016 at 4:07 pm
Apr 8, 2016 at 4:39 pm -
Hello ! One question. How to wait more than one (one handred, for example) *net.Conn ? Thanks ! Oleg. -- You received this message because you are subscribed to the Google Groups "golang-nuts" ...
Oleg Puchinin
Apr 29, 2016 at 12:27 pm
Apr 29, 2016 at 2:47 pm -
Hi all, Got some nice solid results from my foray into the world of map implementations that I'd like to share. Still somewhat rough around the edges but looks promising ...
Halmstad Ving Tsun
Apr 22, 2016 at 10:49 pm
Apr 25, 2016 at 4:29 am -
Hi, I am stumped with a problem that is typically solved with a classic inheritance in a proper OO language. I have several classes that have common instance variables and methods. These classes are ...
Henry
Apr 16, 2016 at 4:30 am
Apr 16, 2016 at 5:22 pm -
I've been using the frequently suggested *(*C.uchar)(unsafe.Pointer(&msg[0]))* to pass a Go byte array to a C function - but it (obviously) crashes with a panic when the byte array is of length 0. Is ...
Ts
Apr 8, 2016 at 3:24 pm
Apr 9, 2016 at 2:12 pm -
Go have useful concurrent model with goroutines. It is easy to create concurrent algorithm, but there are no cocurrent lock-free data structures. Maybe it is a good idea to create standart libraries ...
Vlad Gruchik
Apr 18, 2016 at 3:04 pm
Apr 18, 2016 at 11:42 pm -
I think I understand interfaces pretty well, but this one problem has always puzzled me: *Error:* prog.go:19: cannot use items (type []Item) as type []interface {} in field value *Playground:* ...
Harrison Kelly
Apr 6, 2016 at 6:36 pm
Apr 9, 2016 at 1:17 pm -
hi there, I am trying to read and decode astrophysics images coming out of a telescope. the image payload is stored as a big-endian encoded slice of float32. the python doc only vaguely defines that ...
Seb Binet
Apr 21, 2016 at 2:29 pm
May 26, 2016 at 4:35 pm -
I am currently seeing a 30x+ slowdown from http to https on arm when transferring a single 13MBish file, is this expected? -- You received this message because you are subscribed to the Google Groups ...
Jonathan Gaillard
Apr 19, 2016 at 12:31 am
May 9, 2016 at 10:55 pm -
I am doing a http test,send different type responses,server return common results contains specific responses,struct like this type Resp struct{ Code string `json:"code"` Msg string `json:"msg"` Data ...
Approaching
Apr 26, 2016 at 8:00 am
Apr 26, 2016 at 2:08 pm -
I find that using "range ch" will throw exception of deadlock, the problem code is as follows: package main import "fmt" func Count(ch chan int) { ch <- 1 } func main() { ch := make(chan int, 10) for ...
Steve tang
Apr 22, 2016 at 1:31 pm
Apr 23, 2016 at 10:11 am -
Can anyone help me interpret this backtrace from an ARMv7 NAS running my rclone program? * Why are there so many init() functions in the backtrace? * Why does ...
Nick Craig-Wood
Apr 8, 2016 at 9:38 am
Apr 14, 2016 at 9:20 pm -
I ran the fluid demo last night and was surprised by the redraw rate. Now, I haven't seen the gldriver working yet (only tried on linux) but would performance still be similar? I've always read that ...
Daniel Skinner
Apr 29, 2016 at 2:24 pm
May 12, 2016 at 3:25 pm -
I'm have close to zero experience writing things that interact with users via a web browser, but now I am in the position of wanting to make something like this. Can someone point me to good ...
Dan Kortschak
Apr 27, 2016 at 4:00 am
May 2, 2016 at 11:18 am -
Is Windows performance expected to be substantially slower than Linux? I've done benchmarks with pgx, a Go/Postgres driver [1], and found it substantially slower on Windows than Linux, but guessed it ...
Jack Christensen
Apr 23, 2016 at 4:50 pm
Apr 24, 2016 at 11:32 pm -
If a function takes a slice argument, changes it makes to the elements of the slice will be visible to the caller, analogous to passing a pointer to the underlying array. The length of a slice may be ...
Alexander Kapshuk
Apr 11, 2016 at 6:53 am
Apr 12, 2016 at 12:19 am -
Hello, I'm in the process of writing a wkhtmltox library wrapper. I got most parts working despite my small C experience. My problem at the moment is retrieving the output PDF. Since I don't want to ...
Arens Jan
Apr 1, 2016 at 11:16 am
Apr 2, 2016 at 9:55 pm -
bufio.Reader. Read documentation states: "func (b *Reader <https://golang.org/pkg/bufio/#Reader ) Read(p []byte <https://golang.org/pkg/builtin/#byte ) (n int <https://golang.org/pkg/builtin/#int , ...
Andrewchamberss
Apr 27, 2016 at 11:36 am
Apr 30, 2016 at 11:02 pm -
Closing a closed channel causes a panic - I know that. I'm interested in why? I've seen (and written) lots of code that does func (x *X) Close() { x.mutex.Lock() defer x.mutex.Unlock() if !x.closed { ...
Alex Bligh
Apr 27, 2016 at 1:52 pm
Apr 28, 2016 at 6:14 pm -
Hello, I haven't found anywhere the information of places and cases, where automatic nil checking happens. Can you provide me with this information (common cases for ex.)? -- You received this ...
Anastasia Ruzhanskaya
Apr 15, 2016 at 9:21 am
Apr 15, 2016 at 5:45 pm -
I recently got a toy to play with with my child and I wanted to have some non-GUI fun (mainly for myself) as well. I've installed the ev3dev jessie linux distro on an SD and that's all good, but ...
Dan Kortschak
Apr 14, 2016 at 10:47 am
Apr 15, 2016 at 7:54 am -
Hi This is a question on what is the best practice to handle errors in gRPC. To explain: I have a .proto file with a service API: service Search { rpc Search (Params) returns (Results) } where the ...
Sankar
Apr 17, 2016 at 6:06 pm
May 1, 2016 at 4:27 am -
Hi, I recently started reading Biran Kernighan's book about the Google Go language. It triggered my curiosity and I started experimenting again with Go. My two current development machines are: - A ...
Serge Hulne
Apr 7, 2016 at 12:52 pm
Apr 27, 2016 at 12:36 am -
Hello gophers, I have built a database toolkit inspired from python's sqlalchemy. The very first release is out. I need feedbacks & stars. Hope you enjoy. Documentation <https://qb.readme.io Github ...
Aras Can Akın
Apr 20, 2016 at 9:35 pm
Apr 22, 2016 at 1:57 pm -
Hi, fsnotify is a file system notifications library for Go. In order to support linux/arm64, the next release is switching from the standard library's frozen implementation of syscall to ...
Nathan Youngman
Apr 19, 2016 at 4:00 am
Apr 21, 2016 at 2:43 pm -
Hi there, I have a C function which looks like the following: bool funcA(const char* returnValue); If I want to call it from golang, how should I declare a variable and pass it to funcA as the ...
Ray Yang
Apr 16, 2016 at 1:36 pm
Apr 19, 2016 at 12:14 am -
Hi Gophers, I have a piece of code similar to this: https://play.golang.org/p/OBhc-OysjT (the code in the test() method is actually in a func TestSimpleId(t *testing.T)). The issue is that running a ...
Ugol
Apr 13, 2016 at 2:24 pm
Apr 13, 2016 at 4:53 pm -
Hi All, In any browser, when a client sends a https request to WebServer(with self-Signed Certificate), Browser prompts with a warning message on whether to proceed or not. Based on user acceptance, ...
Laxman Vallandas
Apr 5, 2016 at 10:33 pm
Apr 13, 2016 at 6:30 am -
Hi, i am trying to write a function that take a slice as a argument and manipulates the slice (removes items). https://play.golang.org/p/N0rmBrMjM9 the example creates a int slice, populates the ...
Sotirios Mantziaris
Apr 10, 2016 at 8:47 pm
Apr 11, 2016 at 8:19 pm -
Hi, I am trying to run the command below. It is meant to send an email like mail -s "This is the subject" <span class="m_body_email_addr" title="ba95799ceedd18316033196cb243cfc0" ...
Will
Apr 11, 2016 at 4:19 pm
Apr 11, 2016 at 7:03 pm -
Hi Team I have been getting *import cycle not allowed *error in my files/projects for no apparent change I made. In the least simple program : package main import "fmt" func main() { fmt.Println(1) } ...
Raunak Kumar Agarwal
Apr 4, 2016 at 5:43 am
Apr 4, 2016 at 12:47 pm -
Hello everyone We're running go binaries with supervisor on our linux boxes, some API's. So far we've been scp'ing the binaries over and restarting supervisor, that worked. Then the apps started to ...
Matt Davies
Apr 28, 2016 at 3:38 pm
Apr 29, 2016 at 11:05 am -
Hello! I have a question about strings and bytes arrays (slices). Documentation I have read states: "these two types are different... strings are immutable... there are separate libraries for strings ...
Leszek Dubiel
Apr 22, 2016 at 12:21 pm
Apr 22, 2016 at 3:35 pm -
Hi, maybe it's a noob error but I can't find the solution. This is the situation, I've a global variable in my main package and I need to change the value with other package. Maybe this little code ...
Carlos E. Muñoz
Apr 20, 2016 at 7:07 pm
Apr 21, 2016 at 4:05 pm -
Marid 0.0.1: Generate go code through text/templates templating. Its a first draft, testing and documentation to come. I'm posting this here looking for feedback and contributors ...
Blueblank
Apr 20, 2016 at 6:45 pm
Apr 21, 2016 at 2:44 pm -
My requirement is to get the ORIGINAL string value of each field so that they can be used for signature verifying. However json.Unmarshal(data []byte, v interface{}) will decode everything it ...
Spike Nuaa
Apr 19, 2016 at 1:05 pm
Apr 20, 2016 at 11:11 pm -
Hello, I am looking for end to end information for developing a mobile application in iOS/Android using GO language. Where shall I get the software to build the App? The GOmobile tool source server ...
Noor Baig
Apr 19, 2016 at 6:33 pm
Apr 20, 2016 at 5:31 pm -
I'm trying to write a utility that takes a regex via the command line and something is happening to the passed ^ (carets). Here is a simple test app I've been using: package main import ("fmt" "flag" ...
Sean Milligan
Apr 13, 2016 at 9:10 pm
Apr 15, 2016 at 12:21 am -
i am using this https://github.com/mattn/go-sqlite3 PKG and getting this error github.com/mattn/go-sqlite3 /usr/bin/ld: unrecognized option '--build-id=none' /usr/bin/ld: use the --help option for ...
Kumargv
Apr 14, 2016 at 7:50 am
Apr 14, 2016 at 10:11 am
Group Overview
group | golang-nuts |
categories | go |
discussions | 263 |
posts | 1,340 |
users | 390 |
website | golang.org |
390 users for April 2016
Archives
- June 2016 (815)
- May 2016 (1,277)
- April 2016 (1,340)
- March 2016 (1,589)
- February 2016 (1,499)
- January 2016 (1,419)
- December 2015 (1,217)
- November 2015 (1,490)
- October 2015 (1,768)
- September 2015 (2,186)
- August 2015 (2,240)
- July 2015 (2,221)
- June 2015 (2,056)
- May 2015 (1,508)
- April 2015 (2,023)
- March 2015 (2,186)
- February 2015 (2,032)
- January 2015 (2,219)
- December 2014 (2,612)
- November 2014 (1,886)
- October 2014 (2,115)
- September 2014 (2,267)
- August 2014 (2,172)
- July 2014 (2,509)
- June 2014 (337)
- May 2014 (1,260)
- April 2014 (2,795)
- March 2014 (2,914)
- February 2014 (2,640)
- January 2014 (2,720)
- December 2013 (2,487)
- November 2013 (2,527)
- October 2013 (2,610)
- September 2013 (3,038)
- August 2013 (3,302)
- July 2013 (2,235)
- June 2013 (2,929)
- May 2013 (3,816)
- April 2013 (3,080)
- March 2013 (2,963)
- February 2013 (3,401)
- January 2013 (3,865)
- December 2012 (2,603)
- November 2012 (2,493)
- October 2012 (3,246)
- September 2012 (3,469)
- August 2012 (62)