Relax, it was a primarily personal statement from Brad and he wanted to to
see if it was shared by others.
I am more baffled that not everyone agrees with him but that again is a
personal view...
fre 25 nov. 2016 kl 15:41 skrev :
> It is not up to the Go team to decide
On Thu, Nov 24, 2016 at 6:01 AM, T L wrote:
>
> On Thursday, November 24, 2016 at 8:16:49 AM UTC+8, Ian Lance Taylor wrote:
>>
>> On Wed, Nov 23, 2016 at 3:49 PM, roger peppe wrote:
>> > Ian, what you say is true, but is also true of types and other
While I understand where this is coming from, I'm asking not to do this.
Given the recent amount of "drama" in Go community, I don't think it would
be wise to add additional dividing factors. If Go Core team is concerned
about their messages integrity, I think we can just remove "Official Go"
On Fri, Nov 25, 2016 at 4:42 PM Chris S wrote:
type AggInfoXml struct {
Percent IntPercent `xml:"taskprogress,omitempty"`
IpAddr []Addr `xml:"host>address,omitempty"`
}
...
for _, port := range
In Go, you can check if a type satisfies a particular behavior by declaring
an interface, and then checking if the type satisfies that interface.
In your case, you can check if the error is `Temporrary()` or not.
See this snippet as an example: https://play.golang.org/p/Ffyg61iDpB
I
Please, find a better solution. Don't delete years of discussion and
curated content. And, the Go subreddit is the work of the community over
there and this question should be directed at them.
Minimizing the involvement and making it a unofficial space should be the
first attempt. An
Hi,
Just an idea, not sure how to formally name it, neither i know if it was
already suggested,
All about the writing,
logged, err := view.Auth.IsLoggedIn()
if err != nil {
panic(err)
}
Which now i write like this,
logged, err :=
I personally like the /r/golang subreddit for finding new projects or blog
posts related to Go. I prefer Google groups for more discussion.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving
This is the most ridiculous, short sighted, and I'll advised thing I've seen
suggested on this list for a while.
Are we also going to remove every article written about go in a newspaper,
magazine, or blog because editors and journalists did something idiotic?
Because if that's the case, we're
On Fri, Nov 25, 2016 at 2:18 AM, wrote:
> I have seen a lot of confusion on how go routines actually work internally.
> Will the function execution ontop of the go routine be rewritten to a
> statemachine with continuations in the same way as the C# async await does?
I
This is a question about the net/http API, Googling was not very helpful.
_, err := http.Get("https://random_non_existing_domain.com;)
Following code will obviously fail, but how can I check if it failed
because of DNS error not because a billion other things that might have
gone wrong?
I don't think people realize the gravity of the situation, of what Brad
pointed out.
If I said something (which in reality I never said) and if someone responds
back to me in a way (which they never did), it could have serious
implications on the parties conversing on a topic -- particularly when
Hi,
I am working on trying to parse an xml file with my go code. But I keep on
getting an error saying:
./main_v4.go:155: aggInfoXml.IpAddr.Hports undefined (type []Addr has no
field or method Hports)
Any thoughts on why this is happening?
Here is my code
package main
import (
God no!
Only because bradfitz has a problem with Reddit doesn't mean that all
others do
Squatting /r/golang and not handing moderation over would be a very unfair
move to those who liked *and still like* Reddit
If you don't wanna be a mod, fair enough, step down but leave us in peace!
--
You
Hi,
I am currently working on parsing an xml file using go structs. I have
typed up the following code below. But for some reason when I try to
compile it. it gives me an error saying
./main_v4.go:155: aggInfoXml.IpAddr.Hports undefined (type []Addr has no
field or method Hports)
I have no
What a knee-jerk reaction. An admin does one stupid thing so it's suddenly time
to abandon one of the most popular websites in the world?
Honestly, I don't think the subreddit should ever have been "official". No one
expects anything on reddit to be an official support channel. It wasn't
The community makes these decisons, not the Mods otherwise what makes you
different than the CEO.
--
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
Laughable, coming from a guy who has turned Livejournal into a Russian
Intelligence collection tool.
Shut the fuck up already
--
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,
Hi all.
I'm trying to implement a structure which gzips multiple
individually-inflatable messages in the same data stream. I've built an
example implementation here: https://play.golang.org/p/hwdrVtI29t. While
this works initially, eventually the gzip reader throws an "unexpected EOF"
at me.
I have to agree with this poster.
I'm an experienced developer but reasonably new to Go.
Frankly nothing about the subreddit indicates that it's official. I suggest
that the Go team withdraw from moderating the subreddit if they do not
agree with recent events on reddit itself. Leave a note in
I have seen a lot of confusion on how go routines actually work internally.
Will the function execution ontop of the go routine be rewritten to a
statemachine with continuations in the same way as the C# async await does?
If I have only 1 OS thread and 1000 go routines, obviously there must be
This will work for you:
type User struct {
Name string `json:"name"`
PasswordHash string `json:"-", db:"passwordHash"`
}
Thank you,
Derick
On Friday, November 25, 2016 at 8:35:13 PM UTC+5:30, Mirco Zeiss wrote:
>
> Yeah, I know. But how do I keep the private fields when talking to my
>
Hi Team,
I want to catch my custom error being returned from various methods and
based on their type i want to return http error code. is ther any generic
way?
Regards,
Parveen Kumar
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To
Hi Team,
is there any tool or framework in golang which can be used to get
application level metrics like hit on api or turn around time, etc.
Regards,
Parveen Kumar
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this
So CEO spends an hour modifying some comments that were personally insulting
him, yes pretty bad, but makes no sense to conclude site is bullshit because of
that. It is not like he even hid the fact, just admitted it for no reason.
Still bad, but could be a lot lot lot worse.
--
You received
It is not up to the Go team to decide where the community chooses to spend
their time. The arrogance in previous statements is staggering.
The CEO changed something on a totally unrelated subreddit. Sounds like that
incident is used to clean house for Go (get rid of Reddit); a political move
Yeah, I know. But how do I keep the private fields when talking to my
database?
On Friday, November 25, 2016 at 2:04:58 PM UTC+1, Tamás Gulácsi wrote:
>
> Yoz can create a MarshalJSON method on the struct (type), that filters out
> private fields, based on either field name, or a field tag.
--
I agree Reddit is a bit toxic place, but I also think it would be
overreaction to delete /r/golang. I think it would be better to just mark
it as 'unofficial' subreddit.
Community != CEO.
On Friday, November 25, 2016 at 1:53:32 AM UTC+2, bradfitz wrote:
>
> In light of the CEO of Reddit
> It's a wretched hive of scum and villainy. The Go subreddit was the only
> thing similar to human and it is downright painful most of the time.
Way to go insulting everyone on Reddit. I'm neither scum or a "villain".
I also spend a lot of time on /r/golang and it's nowhere near painful, I
google+? how about we just move to a MySpace group?
--
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,
While I find Reddit and the conduct on/around it to be vile and nonredeemable,
/r/golang is a nice addition to the community whose positives have generally
outweighed the negatives. Killing it unnecessarily fragments the Go community
at-large — especially if no good alternative/transition can
This move is just petty and overreactive, considering the /r/golang
community was not asked prior to this proposal, I was informed about this
through a post from a non-moderator user.
How am I supposed to trust you ever again to not just delete a forum or any
platform of discourse because
The most immature and unethical thing I've seen today is that this thread
exists. Stamping your feet over something as inane as a mod abusing his powers
on an internet forum while simultaneously abusing your powers as a mod
threatening to delete an entire community over something out of their
The depressing unintended consequence of this is that a rift has been created
between community leaders and r/golang users (Who happened to see the post).
I recently entered r/golang because I already used a couple other subreddits
that perform a function similar to an RSS feed. Simple content
I'm baffled at the people that agree to lessen the voice of Go. If Reddit is
not suited to your taste or morals, that's understandable, continue down the
road of creating an official alternative, but don't shut down a positive space
in a very large world because you find the actions of the
Got one question about the design of some packages using the new 'context'
in golang. Let's assume we have a webserver, when some request get in, we
can get the context from request, and this request can trigger several
packages.
What is the best way to send this context to the other packages?
So it works very similar to normal OS thread context switching, but more
explicit?
The code will push all local state to the go routine stack, pop the state
for the next go routine and change the stack pointer?
And this is cheaper than context switching as threads have their own 1 or 4
mb
Any non trivial program is scalable up a certain point.
In your code, you may have some contention.
It can be physical (CPU, memory, network, disks, etc ...) or logical
(mutexes, channels, shared memory, etc ...)
If it is not in your own code, then perhaps it may be in the packages you
use,
Am Freitag, 25. November 2016 15:49:00 UTC+1 schrieb mhh...@gmail.com:
>
> Does it make any sense to you too ?
>
No. Sorry.
For the rare cases where a panic is appropriate you can easily
provide Must... functions (see package template or regexp).
For other cases panicking is not appropriate.
Goroutines are conceptually very similar to threads, but much lighter weight.
They are far cheaper than system threads to run. It's not uncommon for go apps
to have 50k or more goroutines running.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts"
Take a look at the go-kit/kit/metrics package.
https://godoc.org/github.com/go-kit/kit/metrics
The examples folder in the repo has some good usage examples with various
metrics providers.
On Friday, November 25, 2016 at 1:07:55 PM UTC-5, Parveen Kumar wrote:
>
> Hi Team,
>
> is there any tool
Please note that Brad has since posted on Hacker News that he no longer
wants to delete r/golang, but simply make it
unofficial: https://news.ycombinator.com/item?id=13037636
I think this is perfectly fine. Honestly, I don't think many people felt
that anything on reddit was official.
--
On Saturday, 26 November 2016 08:00:24 UTC+11, Roger Alsing wrote:
>
> So it works very similar to normal OS thread context switching, but more
> explicit?
>
Yes, goroutine switching occurs a known points; effectively where the
goroutine is blocked from proceeding; sending and receiving on
agreed, within the std lib, or any package to be consumed, panic is not
right.
In the case i m dealing with now,
web application controller,
with resources that it is not interesting to retry (db, fs , session),
it does look like to me there s not much to do except
1- log
2- die
3- recover to
Would a type switch do what you want ?
err := fn()
switch err := err.(type) {
case nil:
// all good
case *MyCustomError:
// do something custom
default:
// unexpected error
}
On Saturday, 26 November 2016 05:07:55 UTC+11, Parveen Kumar wrote:
>
> Hi Team,
>
> I want to catch my custom
Hello,
I'm abjectly torn. I understand and agree that there are strong moral
boundaries and trust realms that have been broken.
Simply put, reddit has become digg, the shame...
I also understand (and firmly believe) that the moderation of the reddit
/r/golang community has been lackadaisical at
Hi,
I need the CFG for a Golang Program.
Any suggestions about which way can I access the CFG.
Thank you
Akshansh
--
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
What /u/spez did was not "inane" or "immature". If he had replied to the
comments, insulting the commenter's mother's face or something, that would
be inane and immature.
Modifying a user's comments, putting words in their mouth, is fundamentally
a completely different thing. It is
What the hell is a CFG?
--
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
On Thursday, November 24, 2016 at 11:39:38 PM UTC-5, Nate Finch wrote:
>
> Yes, the CEO did a really shitty thing. If we burned down the website of
> every company where someone in power did something shitty, we'd have no
> websites left.
>
>
If we do burn down the website of every company
Proof of the vibrancy of the community can be partially established by how many
posts you received on this post, versus the Reddit thread. While this post is
one of the most responded to posts on this user group of late, the comments on
the Reddit thread dwarf it by far. Consider the impact of
thanks for replying!!!
the answers are great
--
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
Isn't this like saying a whole country is bad because of its
president/leader? A whole community cannot be bad because of what one
person did, nor can a whole company because of its CEO. golang-nuts/-dev
would not be closed if one Google person behaves bad. We are a community of
our own, we
os: windows7
version: go version go1.7 windows/amd64
On Friday, November 25, 2016 at 4:24:52 PM UTC+8, Dave Cheney wrote:
>
> You might want to try eTime.Sub(sTime) which returns a time.Duration which
> can print itself.
>
> Which operating system are you using? Which version of Go are you
You might want to try eTime.Sub(sTime) which returns a time.Duration which can
print itself.
Which operating system are you using? Which version of Go are you using? Are
you running in a virtual machine?
--
You received this message because you are subscribed to the Google Groups
sTime := time.Now()
defer func() {
eTime := time.Now()
debug("Success for ", qname, "for", eTime.Sub(sTime))
}()
thanks, should be like this
Nanosecond() function just return int ( nano second in one second )
On Friday, November 25, 2016 at 4:39:50 PM
On Fri, Nov 25, 2016 at 9:41 AM, Jason Stillwell
wrote:
> https://github.com/dragonfax/go_repl_plugin_example
>
> Its just a toy, but I thought it was an interesting idea.
>
> You compile a plugin with the code the user typed, and then load that into
> the process and
On Thu, 24 Nov 2016 23:59:18 -0800 (PST)
Ainar Garipov wrote:
> Please no. Google Groups is awful, Reddit's /r/golang is where I get
> most of my Go news. I don't want to sift through a forum with no
> voting system, and awful and slow overly-JS-ed design.
On a side
Are you running in a virtual machine?
What does this program print on your system?
https://play.golang.org/p/aYju210lhB
On Friday, 25 November 2016 19:35:54 UTC+11, Xu Lei wrote:
>
> os: windows7
> version: go version go1.7 windows/amd64
>
>
> On Friday, November 25, 2016 at 4:24:52 PM UTC+8,
https://github.com/dragonfax/go_repl_plugin_example
Its just a toy, but I thought it was an interesting idea.
You compile a plugin with the code the user typed, and then load that into
the process and execute it.
--
You received this message because you are subscribed to the Google Groups
So 2¢:
a) I dislike reddit, it has a pretty bad culture of voting by opinion,
drowning out opinions seen as different from the mob and it just, in
general, has too many assholes (not /r/golang specifically, but reddit in
general).
b) I think one good argument for /r/golang over other things (like
2016-11-25 15:36:21.9983037 +0800 CST : [Success for beacons.gvt2.com. for 38]
2016-11-25 15:36:22.0083043 +0800 CST : [Success for timgsa.baidu.com. for
-960]
2016-11-25 15:36:22.0153047 +0800 CST : [Success for sp0.baidu.com. for -953]
2016-11-25 15:36:22.0153047 +0800 CST : [Success for
+
On Fri, Nov 25, 2016 at 10:20 AM Konstantin Khomoutov <
flatw...@users.sourceforge.net> wrote:
> On Thu, 24 Nov 2016 23:59:18 -0800 (PST)
> Ainar Garipov wrote:
>
> > Please no. Google Groups is awful, Reddit's /r/golang is where I get
> > most of my Go news. I don't
you should use Sub function
Time include two part. Nanosecond method just return field of nsec. not
nanoseconds since from 1970
type Time struct {
// sec gives the number of seconds elapsed since
// January 1, year 1 00:00:00 UTC.
sec int64
// nsec specifies a non-negative nanosecond
// offset
The disconnect between what the Go team acting as moderators think
about themselves, and what the reddit thinks about the moderator is
disconcerting, and it proves that these people are the wrong people
for the job.
Because some guy (not associated with either Go or /r/golang) abused
his power,
But then go get github.com/me/project will be non-functional ?
2016-11-25 11:35 GMT+01:00 Ian Davis :
> This is how to do it with a git repository:
>
> http://blog.campoy.cat/2014/03/github-and-go-forking-pull-requests-and.html
>
>
> On Fri, Nov 25, 2016, at 10:31 AM, Mariusz
On Fri, Nov 25, 2016 at 12:30 AM Michael Jones
wrote:
> This is very nice! However, am i right in understanding that the magic is
> in knowing the text of the program--the fact that there are untaken
> branches? If so, this is not simply a 'behavioral' verification...it
It is pretty simple:
* If you actually *fork* a project (not what github calls a "fork", but
"create a repo with a different set of maintainers"), *that is a different
package*. It will contain different code and have a different mantainer. So
it is a feature, that go get won't work on it OOTB.
Individually, I get all my Go news (including this) through /r/golang so please
don't.
Strategically, I think deleting it does more harm than good.
I get that sometimes principles should trump practicality, but this specific
problem seems very minor. By keeping it open, we aren't confining
This is how to do it with a git repository:
http://blog.campoy.cat/2014/03/github-and-go-forking-pull-requests-and.html
On Fri, Nov 25, 2016, at 10:31 AM, Mariusz Gronczewski wrote:
> Hi,
>
> So let's say there is a project, living under path
> github.com/local/project. Project is
It highly depends on what you define a function.
If it's in the mathematical sense, it won't work.
A function, in practice, is a small embedded program (stored as a valur in
the main program). It's not just the text (semantics). It's defined
somewhere (in some package etc...)
That's all those
Yoz can create a MarshalJSON method on the struct (type), that filters out
private fields, based on either field name, or a field tag.
--
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
On 25-11-2016, Konstantin Khomoutov wrote:
> On Thu, 24 Nov 2016 23:59:18 -0800 (PST)
> Ainar Garipov wrote:
>
>> Please no. Google Groups is awful, Reddit's /r/golang is where I get
>> most of my Go news. I don't want to sift through a forum with no
>> voting system, and
+1 , delete it. Or let some other group take care of it and remove any
official connection / link to golang.org . That farce lasted long enough.
Let's concentrate on promoting Go the right way, not on a forum full of
toxicity and shoddy admins. Stackoverflow is a better way to ask focused
Hi,
So let's say there is a project, living under path
github.com/local/project. Project is neatly divided into a bunch of
packages and uses recommended absolute paths:
package main
import (
"github.com/external/dep1"
"github.com/local/project/config"
"github.com/local/project/backend"
On Fri, Nov 25, 2016 at 11:31 AM Mariusz Gronczewski
wrote:
> If I just go and fork it and do a bunch of changes across packages then I
can't test it because everything will be under "github.com/me/project" so
deps will come from the "wrong" place.
1. Fork it on githug.
2. $
I think, in the context of this thread, talking about formally proving
whether two functions produces equivalent results is a red herring.
a) It is an impossible problem to solve in general, so you'd need to
restrict your definition to some provable subset
b) That will be impossible to put in a
On Fri, Nov 25, 2016 at 11:31 AM, Mariusz Gronczewski
wrote:
> Hi,
>
> So let's say there is a project, living under path
> github.com/local/project. Project is neatly divided into a bunch of
> packages and uses recommended absolute paths:
>
> package main
>
> import (
>
On Friday, November 25, 2016 at 12:10:56 PM UTC+1, Axel Wagner wrote:
>
> It is pretty simple:
>
> * If you actually *fork* a project (not what github calls a "fork", but
> "create a repo with a different set of maintainers"), *that is a different
> package*. It will contain different code and
I think it's reasonable to expect you to set up your GOPATH accordingly, if
you want the layout to be internal and specific and deviating from the
discovery mechanism. There is no reason, why a tool couldn't fetch your
internal git-repository to the subpath of $GOPATH that corresponds to your
There is exactly one instance of "package local sub-packages" and that is
internal packages (okay. And arguably vendoring). For everything else, the
same logic applies. I don't find it too much to ask in that case, to
actually and explicitly fork.
On Fri, Nov 25, 2016 at 1:27 PM, Mariusz
Indeed, the whole point is that you shouldn't add equality of functions to
a language. I disagree that the formal proof of function equivalence is a
red herring. Rather, it is the crux of the problem: the only sensible
equality of functions turns out to be observational equality, which is
Please don't ! It's a neat resource to discover new projects. And one of
the forums I send newbies to, so that they could get a feel for real world
Go projects and questions. I am sure people will volunteer to moderate if
the current moderators don't want to.
On Friday, 25 November 2016
I'm fine with namespacing and I see benefits for it for deps, just it
would be nice to have something inbetween absolute path and
"../../something" (like "$ROOT/packagename") for package-local
"subpackages" that are not designed to be standalone ones (like in my
case it is usually a package
As a /r/golang user, I remember being delighted to find out that actual core
contributors came in and commented. I never never occurred to me that the
subreddit would have been considered official.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts"
85 matches
Mail list logo