Search Discussions

347 discussions - 2,023 posts

  • I am trying to reduce the amount of code duplication where I iterate through a number of slices of different types, but where the same method is called for each type. I've constructed a (much shorter ...
    Bayan KhaliliBayan Khalili
    Apr 1, 2015 at 11:42 am
    Apr 8, 2015 at 3:07 am
  • FYI, after a hiatus over a year, the wheels were set in motion again at the Techempower benchmark <https://groups.google.com/forum/?fromgroups=#!topic/framework-benchmarks/yyK8VclJ6Zc This is preview ...
    Apr 1, 2015 at 5:44 pm
    Apr 25, 2015 at 3:27 pm
  • Hi Is there a good article/blogpost/doc about pass by values / reference of arrays/maps/struct members or other complex nested structures ? When (on what conditions) will the parameters be duplicated ...
    Apr 8, 2015 at 6:41 am
    Apr 10, 2015 at 8:32 am
  • Есть ли тут русские программисты? -- 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, ...
    Apr 2, 2015 at 12:32 pm
    May 22, 2015 at 1:20 pm
  • Resurrecting an old thread. https://groups.google.com/d/topic/golang-nuts/4aFAxBEjjBY/discussion I'm using gob to serialise very large data sets for storage rather than message passing (maybe this is ...
    Dan KortschakDan Kortschak
    Apr 20, 2015 at 1:34 am
    Apr 23, 2015 at 11:56 am
  • Hello who have a tutorial for android in go? for e.g : http://www.tutorialspoint.com/android/ this is the tutorial for android with java it's very good i want tutorials for android programming with ...
    Apr 28, 2015 at 6:25 pm
    Jun 12, 2015 at 9:19 am
  • Are people actively working on a specification for the vendor file? Is there a living document? I am not aware of one currently. If there is no existing draft, I would like to propose we use the ...
    Daniel TheophanesDaniel Theophanes
    Apr 9, 2015 at 4:53 pm
    Apr 14, 2015 at 8:08 pm
  • Hi gophers. I was planning on using Go for a in-mem k/v store. The design very much depends on allocations on page boundaries. (Data and index segments are limited to []uint64 & []byte. In the main, ...
    Joubin HoushyarJoubin Houshyar
    Apr 13, 2015 at 1:23 pm
    Apr 16, 2015 at 5:03 pm
  • Moving this conversation from GitHub to the mailing list... ----- Go should have a first-class cancellation pattern (in much the same way that it has a first class error pattern). The cancellation ...
    Apr 24, 2015 at 12:38 am
    Apr 30, 2015 at 11:00 pm
  • Hi, I use golang for processing large JSON files(currently about 30GB), golang is useful for development, but it seems to be much slower and use much more memory than I expected. So I tested ...
    Apr 7, 2015 at 3:45 pm
    Apr 10, 2015 at 3:53 am
  • Why Go perform quite bad compared to another implementation on this benchmark <https://github.com/kostya/benchmarks/tree/master/base64 . the code: import "encoding/base64"import "fmt"import ...
    Kiswono PrayogoKiswono Prayogo
    Apr 13, 2015 at 1:36 am
    Jun 22, 2015 at 2:19 pm
  • hi guys i am trying to display the total physical memory. i tried using the following code : fmt.Printf("%v",runtime.MemStats.TotalAlloc) but i get error saying # command-line-arguments can anyone ...
    Apr 6, 2015 at 2:55 pm
    Apr 22, 2015 at 1:53 pm
  • I have a loop in my code that just needs to execute a certain number of times. I don't make any reference to the loop control variable anywhere in the body of the loop, but since the for clauses have ...
    Mark ReedMark Reed
    Apr 3, 2015 at 1:29 am
    Apr 7, 2015 at 7:50 pm
  • Hello Gophers, The Go team would like you to complete a very short survey (http://bit.ly/1cws9JE) about your development and deployment environment. The data will be used to help us determine ...
    Jason BuberelJason Buberel
    Apr 15, 2015 at 7:26 pm
    May 5, 2015 at 7:09 pm
  • My Dockerfile looks like this: FROM golang:onbuild RUN go get [...] RUN apt-get update && apt-get install -y redis-server CMD redis-server CMD go run main.go My program needs Redis server listening ...
    Apr 17, 2015 at 8:18 am
    Apr 17, 2015 at 10:40 pm
  • Hello! In my program I use several dynamically created goroutines and I want to write logs with goroutine name prefix. Name is set inside goroutine. I cannot just pass this name to logger function, ...
    Сергей ЖуматийСергей Жуматий
    Apr 15, 2015 at 11:47 am
    Apr 20, 2015 at 9:33 pm
  • *Map* 1. Multiple append/update/delete to a map will make data not safe, or may crash the program. 2. ? If only one goroutine change the map, other goroutines just read from the map, will this ...
    Color FuzzyColor Fuzzy
    Apr 2, 2015 at 3:37 am
    Apr 2, 2015 at 11:11 pm
  • Hi, I wonder whether the Go Team has considered adding a feature to the language that allows developers to deprecate functions that are no longer supported. In C#, you can just mark a method as ...
    Henry Adi SumartoHenry Adi Sumarto
    Apr 28, 2015 at 4:24 am
    May 5, 2015 at 10:39 pm
  • "The receiver is specified via an extra parameter section preceeding the method name. That parameter section must declare a single parameter, the receiver. Its type must be of the form T or *T ...
    Anmol SethiAnmol Sethi
    Apr 1, 2015 at 2:38 am
    Apr 3, 2015 at 9:47 pm
  • Hi All Do you run your Go HTTP servers as root? If not, what do you put in front of them to give you access to port 80/443? Phil -- You received this message because you are subscribed to the Google ...
    Philip PearlPhilip Pearl
    Apr 28, 2015 at 7:58 am
    May 3, 2015 at 8:13 pm
  • Hi all! I've been working on a high-performance memcached-like server in Go: https://github.com/jonhoo/cuckoocache. It uses three goroutines for each connection (one for reading, one for computation, ...
    Apr 20, 2015 at 9:02 pm
    Apr 24, 2015 at 8:46 am
  • I am trying to test a simple case that use GoString struct, I want to pass Go string from C to Go export function, follow is my code: package main /* #include <stdio.h #include <stdlib.h typedef ...
    Giang TranGiang Tran
    Apr 8, 2015 at 7:15 am
    Apr 10, 2015 at 2:44 am
  • 1. //to get file's size type Size interface { 2. Size() int64 3. } func HelloServer(w http.ResponseWriter, r *http.Request) { 4. file, _, := r.FormFile("file") //small files is ok,but big file(for ...
    Apr 8, 2015 at 9:57 am
    Apr 9, 2015 at 2:53 pm
  • In my attempt to build high performance and memory-efficient parsers, I have been profiling my code for weeks now. The low-hanging fruit is long gone and a lot of micro-optimizations have contributed ...
    Apr 2, 2015 at 9:00 pm
    Apr 5, 2015 at 10:12 am
  • Hi, I'm trying to write %40 (\x25\x34\x30) in a request uri, is this possible? 1: request, := http.NewRequest("GET", "http://hello.com/myac%40hello.com/mypersonalfolder/", nil) fmt.Printf("URL ...
    Kasper UnderstrupKasper Understrup
    Apr 23, 2015 at 1:27 pm
    Apr 25, 2015 at 9:56 pm
  • Quick background: I'm trying to create a struct that uses an array of bytes as a counter (the reasoning for this is a bit long, but I can't use a standard uint64). I created an increment(n *[8]byte) ...
    Jordan WrightJordan Wright
    Apr 12, 2015 at 11:08 pm
    Apr 13, 2015 at 5:28 am
  • I have seen a few posts recently about wrapping interfaces where the interfaces may optionally implement extra methods for extra features or optimisations. Examples include io.Reader (extended by ...
    Roger peppeRoger peppe
    Apr 3, 2015 at 5:18 pm
    Apr 6, 2015 at 4:56 pm
  • i seem to have come to an impasse in the std libs..... i had a use case for a large image, mostly Gray, but with some small color highlights, so for efficiency, i implemented a new image type like ...
    Simon placeSimon place
    Apr 25, 2015 at 8:20 pm
    May 8, 2015 at 11:52 pm
  • I'm very much used to JavaScript, so, sorry that this might be biased to JS context. In JavaScript, for asynchronous calls, we use Promises and Streams. Promises are asynchronous singular primitives ...
    Boopathi RajaaBoopathi Rajaa
    Apr 9, 2015 at 9:40 pm
    Apr 10, 2015 at 9:30 pm
  • Hi, I wrote a following program: https://github.com/mkozjak/gorecord/blob/cpu_profile/gorecord.go It is used to read data from a udp socket and write it to a file. According to the attached svg, ...
    Mario KozjakMario Kozjak
    Apr 29, 2015 at 1:46 pm
    Jul 21, 2015 at 2:18 pm
  • Hello, I’m trying to skip one test with the "go test" command. I found that it is easy to run only one test using the -run option (go test -run="Test_function_that_I_want_to_run") How to skip only ...
    Sundar Vadivel85Sundar Vadivel85
    Apr 23, 2015 at 11:41 am
    May 2, 2015 at 7:17 am
  • Am new to Golang. With a basic knowledge of PHP and OOP. I need to develop a data survey app and i cant since to find my way around the program. Am help please.... Thanks -- You received this message ...
    Dein AgiobuDein Agiobu
    Apr 7, 2015 at 5:34 pm
    May 1, 2015 at 5:55 pm
  • Hey guys, i recently asked this question in SO http://stackoverflow.com/q/29452538/1373105 and i haven't getting the code working yet. So i'm trying here. To quote the original question: I'm trying ...
    Apr 6, 2015 at 3:00 pm
    Apr 13, 2015 at 3:16 pm
  • ....see subject. From an app server perspective, it would be *very* interesting if we had a JS engine in Go that could expose Go libraries as Javascript calls in the JS engine. Has anything like this ...
    Maarten KoopmansMaarten Koopmans
    Apr 9, 2015 at 1:14 pm
    Apr 11, 2015 at 9:38 am
  • Hey, I almost never use arrays directly in Go (I mostly use slices), but if I have a fixed size list of byte values that cannot (must not) change in length – would you still recommend that it be a ...
    Apr 3, 2015 at 2:23 pm
    Apr 5, 2015 at 3:09 pm
  • Hello, I want to write a small program in GO-Lang that will first SCP a file from remote machine & delete the file from remote machine. Please provide references to the sample programs/packages ...
    Ajay BodheAjay Bodhe
    Apr 10, 2015 at 8:48 am
    Jun 3, 2015 at 8:48 am
  • I want to use VideoJS to play .mp4 videos(very large files) from my website. How can I serve these video files effectively from Go web server? Thanks. Andrew -- You received this message because you ...
    Apr 21, 2015 at 11:36 pm
    May 29, 2015 at 9:48 pm
  • Hi All I am relatively new to the net/http package and are trying to understand how the POST method works. I am writing a small package to interface with RT Request Tracker's REST interface. I can ...
    Ivan MayIvan May
    Apr 30, 2015 at 2:46 pm
    May 13, 2015 at 11:36 am
  • I'm trying to write a parser for messages that come on the wire. Messages can be split between network packets. - The entire message is composed of key=value with a character separator. - There is a ...
    Apr 29, 2015 at 1:56 pm
    May 7, 2015 at 4:28 pm
  • Hi folks, I want to share this small library: rat is an extension to the classical tar archive, focused on allowing constant-time random file access with linear memory consumption increase. tape ...
    Máximo CuadrosMáximo Cuadros
    Apr 21, 2015 at 10:21 am
    Apr 30, 2015 at 3:36 pm
  • Project: /Calculate source code comment coverage for implementation vs. non-implementation code./ https://github.com/gima/scq This is a long shot and I’m hesitant to post this here, but I’ve come to ...
    Apr 28, 2015 at 12:30 pm
    Apr 29, 2015 at 8:55 am
  • I suggest creating a new question instead and show an example of... this is what I have, and would like this to happen etc. Possibly a link to play.golang.org with code that uses that library. The ...
    Apr 23, 2015 at 7:15 pm
    Apr 23, 2015 at 8:53 pm
  • Could someone point me to a nice implementation of how CRUD is used in GO? So far I have found this - http://paste.ubuntu.com/8503695/ but it is incomplete. I come from Python, so I really need an ...
    Apr 20, 2015 at 4:22 pm
    Apr 22, 2015 at 8:36 pm
  • I'm trying to get the numeric values (value property) for some non-ASCII code points which are decimal digits (as per Unicode.IsDigit). I believe that in Java you would use getNumericValue, and in ...
    John SouvestreJohn Souvestre
    Apr 20, 2015 at 4:39 pm
    Apr 22, 2015 at 4:29 am
  • Hi, I am trying to solve a problem where the client code has the option to either directly import and call my library structs and corresponding methods/functions OR it can have a config file in ...
    Apr 11, 2015 at 3:09 pm
    Apr 18, 2015 at 3:47 am
  • Hi I have a simple UDP server that simply parses lines, trimming them allong the way. It works very well most of the time, but about 1-2 times a day things crash. unexpected fault address 0x0 fatal ...
    Bo BlantonBo Blanton
    Apr 15, 2015 at 3:51 am
    Apr 15, 2015 at 5:08 pm
  • "ditaa is a small command-line utility that can convert diagrams drawn using ascii art ('drawings' that contain characters that resemble lines like | / - ), into proper bitmap graphics." This Go port ...
    Mateusz CzaplińskiMateusz Czapliński
    Apr 7, 2015 at 11:08 pm
    Apr 10, 2015 at 5:55 pm
  • Dear Gophers, I was about to adopt “12-factor” and initially just use stdout for logging and let rotation and redirection for the environment. But then I’m totally involved with CGO, I have lots of ...
    Francisco LopesFrancisco Lopes
    Apr 9, 2015 at 6:22 pm
    Apr 10, 2015 at 2:21 pm
  • Hi, I play with a small benchmark program and I see go binary take significant CPU usage, and profiling shows (if I read it correctly) it comes from syscall.Syscall, I wonder if there is way to ...
    Vadim TkachenkoVadim Tkachenko
    Apr 7, 2015 at 3:37 pm
    Apr 7, 2015 at 9:51 pm
  • Hello gophers! I am trying to find what is idiomatic or even a good way to structure a large "context". So this application has an interface Machine that has its implementation switched out on ...
    Jonathan GaillardJonathan Gaillard
    Apr 17, 2015 at 1:15 am
    Apr 17, 2015 at 7:05 pm
Group Navigation
period‹ prev | Apr 2015 | next ›
Group Overview
groupgolang-nuts @

512 users for April 2015

Egon Elbre: 94 posts Ian Lance Taylor: 75 posts Dave Cheney: 60 posts Myalexer: 34 posts James Bardin: 33 posts Konstantin Khomoutov: 33 posts Dan Kortschak: 31 posts Tamás Gulácsi: 30 posts Dmitry Vyukov: 27 posts Andrewchamberss: 25 posts Jan Mercl: 25 posts Anmol Sethi: 22 posts Daniel Theophanes: 22 posts Naoki INADA: 19 posts Rob Pike: 18 posts Shawn Milochik: 17 posts Jonathan Gaillard: 16 posts Joubin Houshyar: 16 posts Roger peppe: 16 posts Gima: 15 posts
show more