Go Language Resources Go, golang, go... NOTE: This page ceased updating in October, 2012

--- Log opened Sun Oct 31 00:00:13 2010
00:03 -!- ronnyy [~quassel@2001:6f8:12c6:1c86:224:1dff:fed7:9541] has quit [Remote
host closed the connection]
00:10 -!- b00m_chef [~watr@66.183.108.186] has joined #go-nuts
00:12 -!- tav [~tav@92.7.118.158] has quit [Ping timeout: 272 seconds]
00:17 -!- tav [~tav@92.7.105.120] has joined #go-nuts
00:18 -!- sauerbraten [~sauerbrat@p508CC8A1.dip.t-dialin.net] has joined #go-nuts
00:21 < sauerbraten> hi, I'm using json.Unmarshal to transfer a json object
into a []map[string]interface{}.  All is fine but when I want to print it with
fmt.Printf("abc:\t%s\nxyz:\t%s\n, c2s_output["abc"], c2s_output["xyz"]), compiler
tells me: "non-integer array index "abc" and non-integer array index "xyz"
00:22 < sauerbraten> someone knows what I'm doing wrong?
00:24 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
00:26 < sauerbraten> oh nevermind
00:40 < exch> Has anyone played with Go's template package?  I'm trying to
have it print some stuff conditionally, based on the value of a boolean field.
Not sure how to go about that
00:43 -!- dacc [~Adium@c-67-171-32-251.hsd1.wa.comcast.net] has joined #go-nuts
00:43 < exch> nvm
00:47 -!- crazy2be [~crazy2be@d205-206-130-118.abhsia.telus.net] has joined
#go-nuts
00:50 -!- dacc [~Adium@c-67-171-32-251.hsd1.wa.comcast.net] has quit [Quit:
Leaving.]
00:50 -!- dacc [~Adium@c-67-171-32-251.hsd1.wa.comcast.net] has joined #go-nuts
00:51 -!- dacc [~Adium@c-67-171-32-251.hsd1.wa.comcast.net] has quit [Client Quit]
00:57 -!- photron [~photron@port-92-201-4-158.dynamic.qsc.de] has quit [Ping
timeout: 276 seconds]
01:02 -!- kanru [~kanru@61-228-155-150.dynamic.hinet.net] has joined #go-nuts
01:19 -!- watr [~watr@66.183.108.186] has joined #go-nuts
01:19 -!- watr [~watr@66.183.108.186] has quit [Client Quit]
01:48 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
01:48 < sauerbraten> does someone have a quick example how I may convert
unix time to readable format?
01:48 < sauerbraten> *human readable :D
01:54 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has quit [Quit:
Leaving.]
02:03 < cbeck> myTime.Format(time.RFC850)
02:04 < cbeck> for other formats, check the constants section of the time
package
02:17 -!- b00m_chef [~watr@66.183.108.186] has quit [Ping timeout: 264 seconds]
02:20 < uriel> integers in decimal are not 'readable'?
02:28 -!- sauerbraten [~sauerbrat@p508CC8A1.dip.t-dialin.net] has quit [Remote
host closed the connection]
02:34 < nsf> lol, I though ruby is fast enough to do shell-like tasks
02:34 < nsf> it turns out it's false
02:34 < nsf> it's dead slow
02:34 < nsf> :\
02:35 < nsf> or not, I don't know
02:35 < nsf> maybe I'm just stupid
02:35 < nsf> :D
02:35 < nsf> yeah, it's more likely
02:40 * TheSeeker ponders how difficult it would be to make danbooru in Go
03:02 -!- iomox [~ios@180.191.93.209] has joined #go-nuts
03:05 < crazy2be> is there any support for cookies in the http package?
03:05 < uriel> nsf: ruby is beyond ridiculously slow
03:06 < nsf> no it's fast
03:06 -!- iomox [~ios@180.191.93.209] has quit [Client Quit]
03:06 < nsf> for shell-like tasks
03:06 < nsf> it was my stupid assumption
03:06 -!- drobole [~drobole@145.84-49-242.nextgentel.com] has joined #go-nuts
03:06 < uriel> ruby's startup time alone makes it unusable for shell-like
tasks
03:06 < uriel> untless it is cron-jobs, and it is only calling a bunch of
external programs not written in ruby
03:07 < uriel> but why would anyone want to use ruby for shell-like-tasks
when you can use works of art like rc that pefrom many time better?
03:08 < uriel> btw, I'm sure you have read the quotes in cat-v.org about
ruby's performance: http://harmful.cat-v.org/software/ruby/ ;)
03:08 < nsf> rc is a crap, sorry
03:09 < crazy2be> uriel: I have heard you hate cookies, is there a better
way to store a seesion id?
03:19 -!- teop [~teop@78.138.171.130] has joined #go-nuts
03:22 -!- tensorpudding [~user@99.148.202.191] has quit [Read error: Connection
reset by peer]
03:23 < plexdev> http://is.gd/gvs5V by [Evan Shaw] in go/test/bench/ --
pidigits: Remove TODO, minor improvements
03:23 -!- SoniaKeys [~soniakeys@c-76-118-178-209.hsd1.ma.comcast.net] has joined
#go-nuts
03:25 -!- Fumon [~fumon@CPE001d7e31d944-CM00222d6b6c85.cpe.net.cable.rogers.com]
has left #go-nuts []
03:36 -!- rejb [~rejb@unaffiliated/rejb] has quit [Ping timeout: 276 seconds]
03:37 -!- cenuij [~cenuij@78.122.184.175] has joined #go-nuts
03:37 -!- cenuij [~cenuij@78.122.184.175] has quit [Changing host]
03:37 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts
03:37 < uriel> crazy2be: probalby not :(
03:37 < uriel> cookies are certainly better than extra crap tagged into the
query string
03:43 < crazy2be> i figured...  It would be nice if there was a better way
03:43 < crazy2be> but the http package doesn't seem to have support for
cookies
03:45 -!- ivan` [~ivan@unaffiliated/ivan/x-000001] has quit [Quit: Coyote finally
caught me]
03:47 -!- ivan` [~ivan@unaffiliated/ivan/x-000001] has joined #go-nuts
03:49 < uriel> haven't done much web programming with Go, but I'm quite sure
web.go does support cookies
03:49 < uriel> (and I'm surprised that the standard http package doesn't are
you sure?
03:49 -!- d_m [d6@SDF.ORG] has quit [Quit: Lost terminal]
03:49 < crazy2be> web.go?  I'm using the http package
03:50 < crazy2be> i can't see it there...
03:50 < crazy2be> Ctrl+F cookie gives nothing
03:54 < SoniaKeys> web.go mentions "secure cookies" right on the front page
03:55 < SoniaKeys> http://github.com/hoisie/web.go
03:55 < crazy2be> why is web.go not meantioned anywhere in the golang.org
documentation?
03:55 < crazy2be> i went and wrote my webserver using the http package
03:55 < cenuij> it's a third party project
03:56 < cenuij> thankfully
03:56 < crazy2be> thankfully?
03:57 < cenuij> yes thankfully
03:58 < crazy2be> why thankfully?
03:58 < crazy2be> are the go libraries stale?
03:58 < cenuij> it's bad enough we have behaviour that automatically
performs redirects based on an opinionated version of what a directory shodl look
like
03:58 < cenuij> http package is nice, and not nice
04:00 < cenuij> much of it is too opinionated
04:01 < crazy2be> How so?
04:01 < crazy2be> I'm just curious
04:04 < cenuij> there are a few opinionated decisions in http
04:04 < cenuij> http://paste2.org/p/1064231
04:05 < crazy2be> so /tree will redirect to /tree/ ?
04:06 < crazy2be> or the other way around?
04:07 -!- teop [~teop@78.138.171.130] has quit [Ping timeout: 264 seconds]
04:08 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has left
#go-nuts []
04:12 < cbeck> the former, I believe
04:16 < nsf> I've just build documentation for the whole std lib using gowtf
04:16 < nsf> :D
04:16 < cenuij> indeed, very helpful ¬_¬
04:17 < nsf> although index is still missing
04:17 < nsf> :(
04:17 < SoniaKeys> how big is it?
04:17 < nsf> SoniaKeys: the docs?
04:17 < SoniaKeys> yes
04:17 < nsf> 2.2 megs
04:17 < SoniaKeys> cool
04:17 < nsf> it can be reduced a bit
04:18 < nsf> but I'll do it later
04:18 < crazy2be> hmmm the md5 crypto lib is returning a bunch of ???
characters
04:19 < crazy2be> like 2�"�Ŵ�Q['LV�
04:19 < nsf> out.puts "all: #{$packages.map{|p|
"html/#{name_to_path(p.name)}.html"}.join(" ")}"
04:19 < nsf> lol
04:19 < nsf> I can't read it :(
04:19 < crazy2be> that's what i mean
04:19 < crazy2be> it's garbage characters
04:20 < crazy2be> they show as ? in black on my system
04:20 < crazy2be> probably squares on others
04:21 < crazy2be> it's also putting in ' and " characters
04:21 < crazy2be> which i would like to avoid
04:21 < cenuij> esperanto will fix it
04:22 < crazy2be> and sometimes it gets (MISSING) in the middle of it
04:22 < cenuij> crazy2be: there are no garbage charcaters :(
04:24 < crazy2be> cenuij: There aren't?
04:26 < plexdev> http://is.gd/gvA1e by [Evan Shaw] in go/misc/kate/ -- kate:
update for append
04:26 -!- drobole [~drobole@145.84-49-242.nextgentel.com] has quit [Quit: Leaving]
04:27 < crazy2be> i mean unprintables, rather
04:32 < cenuij> what?
04:32 < cenuij> why would you have an unprintable character?
04:32 < crazy2be> control characters?
04:33 < cenuij> assumeing you meanrt plurals with your s
04:34 < crazy2be> is there any way to set reply headers with the http
package?
04:36 < crazy2be> oh, nvm
04:37 < cenuij> [05:03] <cenuij> http package is nice, and not nice
04:38 < cenuij> convenient, yes, performant, no
04:40 -!- SirPsychoS [~sp@c-24-13-132-255.hsd1.il.comcast.net] has joined #go-nuts
04:41 < crazy2be> by that you mean that SetHeader() is slow?
04:44 -!- iomox [~ios@180.191.93.209] has joined #go-nuts
04:45 < nsf> http://nsf.github.com/gowtf
04:46 < nsf> full Go std library generated using gowtf
04:46 < nsf> (sorry for crappy index page)
04:47 < nsf> full Go std library _documentation_ generated using gowtf
04:47 -!- SirPsychoS [~sp@c-24-13-132-255.hsd1.il.comcast.net] has quit [Quit:
leaving]
04:47 < nsf> !
04:47 < nsf> :)
04:49 < nsf> so, what do you think?
04:49 < nsf> :D
04:51 < nsf> I think there is a lot of stuff to improve
04:52 < crazy2be> uh
04:52 < crazy2be> isn't it missing stuff?
04:52 < nsf> like what?
04:52 < nsf> currently there are bits that are very unintuitive
04:52 < nsf> like the only way to get methods of a type
04:52 < crazy2be> yeah
04:52 < nsf> is to use query field
04:53 < crazy2be> that's what i mean
04:53 < crazy2be> :P
04:53 < crazy2be> is there any way to ReadString(
04:53 < crazy2be> \n")
04:53 < crazy2be> on a file?
04:53 < crazy2be> Basically ReadLine()
04:53 < nsf> http://nsf.github.com/gowtf/bufio.html?tm:Writer!
04:54 < nsf> see this link for example
04:54 < nsf> contains both type and methods of Writer
04:55 < nsf> for methods of os.File
04:55 < nsf> just open that package
04:55 < nsf> and type into query field:
04:55 < nsf> t:file.
04:55 < nsf> or
04:55 < nsf> tm:file
04:55 < nsf> both are the same
04:56 < nsf> eventually I will make the system fully usable without touching
the mouse at all
04:56 < crazy2be> lol
04:57 < nsf> http://nsf.github.com/gowtf/os.html?m:File.WriteString!
04:57 < nsf> and you can give exact links like that
04:57 < nsf> for every entity or a group of entities
04:57 < crazy2be> woah
04:57 < crazy2be> it's like
04:57 < crazy2be> google instant
04:57 < nsf> yes
04:57 < crazy2be> nice
04:57 < nsf> but fully client-side
04:58 < nsf> using javascript
04:58 < crazy2be> huh
04:58 < crazy2be> i still need ReadLine()
04:58 < nsf> :D
04:58 < nsf> there is no ReadLine
04:59 < crazy2be> :/
04:59 < crazy2be> i know
04:59 < crazy2be> lol
04:59 < crazy2be> but tehre should be
04:59 < crazy2be> *there
04:59 < nsf> crazy2be:
http://nsf.github.com/gowtf/bufio.html?m:Reader.ReadString!
04:59 < nsf> read this
04:59 < nsf> just use "\n" as 'delim'
04:59 -!- SirPsychoS [~sp@c-24-13-132-255.hsd1.il.comcast.net] has joined #go-nuts
05:00 < nsf> yeah, I guess the documentation is far from usable
05:00 < nsf> but I'll improve it
05:00 < nsf> :D
05:01 < nsf> but the fact that gowtf was able to generate full go lib
documentation
05:02 < nsf> is quite an achievement
05:04 < crazy2be> invalid type assertion: *file.(bufio.Reader)
(non-interface type os.File on left)
05:04 < crazy2be> how do i use a that method with a file?
05:04 < crazy2be> os.File that is
05:04 < nsf> bufio is not an interface
05:04 < nsf> bufio.Reader I mean
05:05 < nsf> you need to wrap the file around it
05:05 < nsf> bufferedf := bufio.NewReader(f)
05:05 < nsf> f is os.File
05:05 < nsf> *os.File
05:05 < crazy2be> ahh
05:10 < SoniaKeys> i tend to use ioutil.ReadFile, convert it to a string,
and use string.Split
05:12 < nsf> SoniaKeys: in case if you need all the strings from a file
05:13 < nsf> but only if you want like first one
05:13 < nsf> (e.g.  shebang statement)
05:13 < nsf> bufio is better
05:20 < crazy2be> SOniaKeys: Isn't that highly inefficient?
05:20 < crazy2be> just wondering
05:20 < crazy2be> because you have to allocate the memory for the file at
least 3 times
05:20 < nsf> crazy2be: if you need all the strings from the file, it is
faster than ReadString multiple times
05:21 < nsf> but it's not much faster
05:21 < nsf> a bit
05:21 < crazy2be> nsf: Why is that?
05:21 < SoniaKeys> memory's pretty cheap
05:21 < nsf> crazy2be: because bufio involves a lot of bookkeeping
05:21 < nsf> like current position in the buffer, buffer size, etc
05:22 < nsf> when ReadFile + Split is just a bunch of linear simple
algorithms
05:22 < cbeck> Also fewer syscalls
05:23 < nsf> that too, yeah
05:23 < SoniaKeys> and, i'm not sure it's 3.  i think just two.  the string
converion makes a copy, but strings.Split should be all slicing.
05:23 < nsf> but performance of the processing is nothing against reading a
file from the HDD
05:24 < SoniaKeys> it's also nice to only have one error to check.  ReadFile
either works or it doesn't
05:25 < crazy2be> huh
05:25 -!- piyushmishra [~piyushmis@117.200.227.138] has joined #go-nuts
05:26 -!- prip [~foo@host5-194-dynamic.17-79-r.retail.telecomitalia.it] has quit
[Ping timeout: 252 seconds]
05:26 < crazy2be> well, goodnight
05:26 < crazy2be> thanks for the help and advic
05:27 < SoniaKeys> goodnight
05:27 -!- crazy2be [~crazy2be@d205-206-130-118.abhsia.telus.net] has quit [Remote
host closed the connection]
05:40 -!- prip [~foo@host243-124-dynamic.35-79-r.retail.telecomitalia.it] has
joined #go-nuts
05:40 -!- illya77 [~illya77@129-17-112-92.pool.ukrtel.net] has joined #go-nuts
05:51 -!- teop [~teop@78.138.171.130] has joined #go-nuts
06:06 -!- piyushmishra [~piyushmis@117.200.227.138] has quit [Ping timeout: 255
seconds]
06:11 -!- zozoR [~zozoR@5634798d.rev.stofanet.dk] has joined #go-nuts
06:20 -!- piyushmishra [~piyushmis@117.200.229.54] has joined #go-nuts
06:20 -!- __david__ [~daviddavi@cpe-98-151-185-99.socal.res.rr.com] has joined
#go-nuts
06:48 -!- iomox [~ios@180.191.93.209] has quit [Quit: Leaving]
06:51 -!- teop [~teop@78.138.171.130] has quit [Ping timeout: 240 seconds]
07:05 -!- piyushmishra [~piyushmis@117.200.229.54] has quit [Quit: Leaving.]
07:12 -!- zozoR [~zozoR@5634798d.rev.stofanet.dk] has quit [Quit: Morten.  Desu~]
07:23 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
07:32 -!- rlab [~Miranda@91.200.158.34] has joined #go-nuts
07:35 -!- skejoe [~skejoe@188.114.142.231] has joined #go-nuts
07:37 -!- terrex [~terrex@84.122.72.127.dyn.user.ono.com] has joined #go-nuts
07:39 -!- SirPsychoS [~sp@c-24-13-132-255.hsd1.il.comcast.net] has quit [Quit:
leaving]
07:50 -!- skejoe [~skejoe@188.114.142.231] has quit [Quit: Lost terminal]
08:09 -!- Xurix [~Luixsia@AToulouse-254-1-31-64.w81-250.abo.wanadoo.fr] has joined
#go-nuts
08:09 -!- Xurix [~Luixsia@AToulouse-254-1-31-64.w81-250.abo.wanadoo.fr] has quit
[Client Quit]
08:25 -!- teop [~teop@78.138.171.130] has joined #go-nuts
08:31 -!- photron [~photron@port-92-201-4-158.dynamic.qsc.de] has joined #go-nuts
08:46 -!- femtoo [~femto@95-89-197-196-dynip.superkabel.de] has joined #go-nuts
08:50 -!- Tv [~tv@cpe-76-168-227-45.socal.res.rr.com] has quit [Ping timeout: 265
seconds]
08:55 -!- terrex [~terrex@84.122.72.127.dyn.user.ono.com] has quit [Ping timeout:
245 seconds]
09:09 -!- ShadowIce [~pyoro@unaffiliated/shadowice-x841044] has joined #go-nuts
09:11 -!- teop [~teop@78.138.171.130] has quit [Ping timeout: 255 seconds]
09:18 -!- ronnyy [~quassel@2001:6f8:12c6:1c86:224:1dff:fed7:9541] has joined
#go-nuts
09:19 -!- SoniaKeys [~soniakeys@c-76-118-178-209.hsd1.ma.comcast.net] has quit []
09:24 -!- teop [~teop@78.138.171.130] has joined #go-nuts
09:27 -!- tumdum [~tumdum@atz187.neoplus.adsl.tpnet.pl] has joined #go-nuts
09:27 -!- tumdum [~tumdum@atz187.neoplus.adsl.tpnet.pl] has quit [Changing host]
09:27 -!- tumdum [~tumdum@unaffiliated/tumdum] has joined #go-nuts
09:32 -!- terrex [~terrex@84.122.72.127.dyn.user.ono.com] has joined #go-nuts
09:37 -!- noktoborus_ [debian-tor@gateway/tor-sasl/noktoborus] has quit [Remote
host closed the connection]
09:48 -!- adu [~ajr@64.134.100.32] has joined #go-nuts
09:52 < uriel> people in reddit are so funny:
http://www.reddit.com/r/programming/comments/dymx5/language_panel_anders_hejlsberg_c_gilad_bracha/c13wqeb
09:52 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
09:54 < taruti> uriel: well Go could have had somethings done better
09:55 < taruti> but it is a quite nice language
09:55 < nsf> I like how people easily say "uh, Go has 30 years old design"
09:55 < nsf> but for some reason people forget that they still use operating
systems which are that old as well
09:55 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Quit: Leaving]
09:55 < nsf> and many other systems
09:55 < nsf> and it's like automatically means that "new" is good
09:56 < nsf> bullshit
09:56 < taruti> (having a richer type system would not have been disruptive
and there has been lots of groundwork for that in functional languages)
09:56 -!- femtooo [~femto@95-89-197-196-dynip.superkabel.de] has joined #go-nuts
09:56 < uriel> taruti: do you have any suggestions on what Go could have
done better?  just curious
09:57 < uriel> taruti: if you can suggest a 'richer type system' (whatever
that means) without disruption, I'm sure the designers of Go would be happy to
listen
09:57 -!- femtoo [~femto@95-89-197-196-dynip.superkabel.de] has quit [Ping
timeout: 264 seconds]
09:58 < nsf> although visiting such events is a waste of time
09:58 < nsf> I'm sure go devs have better things to do
09:58 < nsf> :)
09:59 -!- sauerbraten [~sauerbrat@p508CF338.dip.t-dialin.net] has joined #go-nuts
09:59 < taruti> uriel: I think they will have an OO-language kind of
parametrized type system sometime in the future, but it will probably lack a nice
theoretical layer.
10:04 -!- wrtp [~rog@92.17.51.106] has joined #go-nuts
10:06 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has quit [Quit:
Leaving]
10:07 * uriel is still puzzled at what this magic 'theoretical' pixie dust thing
is all about
10:07 -!- boscop [~boscop@f050131043.adsl.alicedsl.de] has quit [Ping timeout: 276
seconds]
10:08 -!- boscop [~boscop@f055253058.adsl.alicedsl.de] has joined #go-nuts
10:08 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has joined #go-nuts
10:13 -!- ako [~nya@fuld-4d00d31f.pool.mediaWays.net] has joined #go-nuts
10:14 -!- aho [~nya@fuld-4d00d173.pool.mediaWays.net] has quit [Ping timeout: 252
seconds]
10:20 -!- ExtraSpice [~XtraSpice@88.118.33.48] has joined #go-nuts
10:24 -!- adu [~ajr@64.134.100.32] has quit [Ping timeout: 252 seconds]
10:41 -!- noktoborus_ [debian-tor@gateway/tor-sasl/noktoborus] has joined #go-nuts
10:42 -!- adu [~ajr@nmd.sbx11130.silvemd.wayport.net] has joined #go-nuts
10:44 -!- lotrpy [~lotrpy@202.120.36.170] has joined #go-nuts
10:47 -!- wrtp [~rog@92.17.51.106] has quit [Quit: wrtp]
10:47 -!- adu [~ajr@nmd.sbx11130.silvemd.wayport.net] has quit [Ping timeout: 276
seconds]
10:48 -!- terrex [~terrex@84.122.72.127.dyn.user.ono.com] has quit [Ping timeout:
245 seconds]
10:53 -!- adu [~ajr@64.134.40.4] has joined #go-nuts
10:55 -!- tumdum [~tumdum@unaffiliated/tumdum] has quit [Quit: tumdum]
10:58 -!- tumdum [~tumdum@atz187.neoplus.adsl.tpnet.pl] has joined #go-nuts
10:58 -!- tumdum [~tumdum@atz187.neoplus.adsl.tpnet.pl] has quit [Changing host]
10:58 -!- tumdum [~tumdum@unaffiliated/tumdum] has joined #go-nuts
11:00 -!- terrex [~terrex@84.122.72.127.dyn.user.ono.com] has joined #go-nuts
11:02 -!- virtualsue [~chatzilla@nat/cisco/x-bydnnaewhxoncarn] has joined #go-nuts
11:10 -!- adu [~ajr@64.134.40.4] has quit [Ping timeout: 272 seconds]
11:11 < sauerbraten> how do I crosscompile for 32 bit if I am running 64
bit?
11:12 < taruti> use 8g?
11:12 <@nf> sauerbraten: build for GOARCH=386 and use 8g/8l instead of 6g/6l
11:12 <@nf> (that's it)
11:12 < taruti> and set the environment variables correctly
11:12 <@nf> sauerbraten: http://golang.org/doc/install.html#environment
11:13 < sauerbraten> so I have to build the go tools again for 32 bit?
puh...  ok
11:13 <@nf> sauerbraten: not just the tools, the packages also
11:13 < sauerbraten> yes of course...  I meant whole go
11:14 <@nf> yes.  well, if you want to build a 32-bit program you need
32-bit libraries to link to ;)
11:14 -!- rejb [~rejb@unaffiliated/rejb] has joined #go-nuts
11:26 < napsy> is anyone here from London?
11:32 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has joined #go-nuts
11:35 < sauerbraten> I did "export $GOARCH=386" and then executed ./all.bash
in a fresh Go src directory, but it stopped with "cp _obj/math.a
"/home/axle/Go32/go/pkg/linux_386/math.a"
11:35 < sauerbraten> make[1]: Leaving directory
`/home/axle/Go32/go/src/pkg/math'
11:35 < sauerbraten> "
11:36 < sauerbraten> what did I do wrong?
11:37 < sauerbraten> erm sorry, "export GOARCH=386" ofcourse
11:40 -!- araujo [~araujo@gentoo/developer/araujo] has joined #go-nuts
11:41 -!- femtoo [~femto@95-89-197-196-dynip.superkabel.de] has joined #go-nuts
11:43 -!- femtooo [~femto@95-89-197-196-dynip.superkabel.de] has quit [Ping
timeout: 240 seconds]
11:45 -!- dahankzter [~henrik@92-244-3-192.customers.ownit.se] has quit [Remote
host closed the connection]
11:49 -!- lotrpy [~lotrpy@202.120.36.170] has quit []
12:08 -!- tvw [~tv@e176006129.adsl.alicedsl.de] has joined #go-nuts
12:18 -!- virtualsue [~chatzilla@nat/cisco/x-bydnnaewhxoncarn] has quit [Ping
timeout: 276 seconds]
12:24 <@nf> sauerbraten: can't tell without seeing the actual error message;
paste the log to a pastebin so someone can take a look (going to bed now)
12:25 -!- lotrpy [~lotrpy@202.120.36.170] has joined #go-nuts
12:25 -!- zozoR [~zozoR@5634798d.rev.stofanet.dk] has joined #go-nuts
12:43 < sauerbraten> nf: there is no error message :/ that's the last 2
lines i get
13:13 -!- drobole [~drobole@145.84-49-242.nextgentel.com] has joined #go-nuts
13:15 < drobole> whats the idiomatic wat to iterate a list?
13:15 < drobole> *way
13:23 < drobole> nwm.  i think i figured it out
13:27 -!- drobole [~drobole@145.84-49-242.nextgentel.com] has quit [Quit: Leaving]
13:31 -!- kingless [~kingless@adsl-162-136-191.rmo.bellsouth.net] has joined
#go-nuts
13:34 -!- terrex [~terrex@84.122.72.127.dyn.user.ono.com] has quit [Ping timeout:
245 seconds]
13:38 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
13:39 -!- kingless [~kingless@adsl-162-136-191.rmo.bellsouth.net] has quit [Remote
host closed the connection]
13:49 -!- photron [~photron@port-92-201-4-158.dynamic.qsc.de] has quit [Ping
timeout: 240 seconds]
13:49 -!- drry [~drry@unaffiliated/drry] has quit [Ping timeout: 265 seconds]
13:53 -!- drry [~drry@unaffiliated/drry] has joined #go-nuts
13:53 -!- drry [~drry@unaffiliated/drry] has quit [Excess Flood]
13:54 -!- drry [~drry@unaffiliated/drry] has joined #go-nuts
14:09 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has joined #go-nuts
14:14 -!- iomox [~ios@180.191.93.209] has joined #go-nuts
14:24 -!- tensorpudding [~user@99.148.202.191] has joined #go-nuts
14:29 -!- lotrpy [~lotrpy@202.120.36.170] has quit []
14:37 -!- flaguy48 [~gallard@user-0c6s350.cable.mindspring.com] has quit [Ping
timeout: 245 seconds]
14:51 -!- mbohun [~mbohun@ppp115-156.static.internode.on.net] has quit [Quit:
Leaving]
14:57 -!- XenoPhoenix [~Xeno@cpc5-aztw24-2-0-cust39.aztw.cable.virginmedia.com]
has quit [Ping timeout: 240 seconds]
14:59 -!- XenoPhoenix [~Xeno@cpc5-aztw24-2-0-cust39.aztw.cable.virginmedia.com]
has joined #go-nuts
15:03 -!- virtualsue [~chatzilla@host81-148-107-180.in-addr.btopenworld.com] has
joined #go-nuts
15:08 -!- cenuij [~cenuij@base/student/cenuij] has quit [Read error: Connection
reset by peer]
15:15 -!- virtualsue [~chatzilla@host81-148-107-180.in-addr.btopenworld.com] has
quit [Quit: ChatZilla 0.9.86 [Firefox 3.5.15/20101026200251]]
15:33 -!- j`ey [jey2@gateway/shell/bshellz.net/x-sjpsziaixdfwctxv] has left
#go-nuts []
15:36 -!- SirPsychoS [~sp@c-24-13-132-255.hsd1.il.comcast.net] has joined #go-nuts
15:36 -!- kanru [~kanru@61-228-155-150.dynamic.hinet.net] has quit [Ping timeout:
250 seconds]
15:42 -!- Altercation [~Altercati@pdpc/supporter/active/altercation] has quit
[Excess Flood]
15:42 -!- Altercation [~Altercati@pdpc/supporter/active/altercation] has joined
#go-nuts
15:55 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts
16:07 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 252 seconds]
16:08 -!- napsy [~luka@88.200.45.109] has joined #go-nuts
16:09 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
16:10 -!- nigel_kerr [~Adium@97-85-48-8.dhcp.bycy.mi.charter.com] has joined
#go-nuts
16:10 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-152-44.clienti.tiscali.it] has
joined #go-nuts
16:14 -!- Tv [~tv@cpe-76-168-227-45.socal.res.rr.com] has joined #go-nuts
16:15 -!- gnuvince_ [~vince@70.35.165.60] has quit [Ping timeout: 252 seconds]
16:17 -!- crazy2be [~crazy2be@d205-206-130-118.abhsia.telus.net] has joined
#go-nuts
16:17 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Remote host closed the
connection]
16:22 -!- skejoe [~skejoe@188.114.142.231] has joined #go-nuts
16:26 -!- gnuvince_ [~vince@70.35.165.60] has joined #go-nuts
16:31 -!- napsy [~luka@88.200.45.109] has quit [Ping timeout: 250 seconds]
16:36 -!- napsy [~luka@88.200.45.109] has joined #go-nuts
16:36 -!- bjarneh [~bjarneh@1x-193-157-204-227.uio.no] has joined #go-nuts
16:37 -!- Arrow55 [~Arrow@bas9-quebec14-1168093772.dsl.bell.ca] has joined
#go-nuts
16:41 -!- tgall_foo [~tgall@gentoo/developer/dr-who] has quit [Read error:
Operation timed out]
16:45 < crazy2be> is there any way to provide read-only access to a map
element of a struct?
16:46 < crazy2be> i'm trying to create a persistent server-side session
module that keeps track of user settings for certain things
16:46 < KBme> you can check whether it's the same as before you gave access
to it.
16:47 < crazy2be> and i want other modules to be able to do
Session.settings["blah"]
16:47 < crazy2be> but not write to it
16:47 < crazy2be> because if they write to it
16:47 < crazy2be> i want to note it
16:47 < crazy2be> and then schedle a save to disk
16:47 < crazy2be> KBme: how?
16:48 < KBme> copy it and then when the func returns check if it's the same?
16:48 < crazy2be> by having like a Map() func that returns a copy of the
16:48 < crazy2be> oh
16:48 < crazy2be> ok
16:48 < crazy2be> that could owrk
16:48 < crazy2be> *work
16:48 < KBme> dunno if it's the most efficient way though
16:49 < crazy2be> not for simple Set/Get access, so i'll provide functions
for that
16:49 < crazy2be> but i think i won't need access to the actual map very
often
16:49 < crazy2be> just sometimes
16:49 -!- tgall_foo [~tgall@gentoo/developer/dr-who] has joined #go-nuts
16:51 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has quit [Quit:
This computer has gone to sleep]
16:55 -!- iomox [~ios@180.191.93.209] has quit [Quit: Leaving]
16:55 -!- KBme [~KBme@9angled-2-pt.tunnel.tserv5.lon1.ipv6.he.net] has quit [Read
error: Operation timed out]
16:56 -!- KBme [~KBme@9angled-2-pt.tunnel.tserv5.lon1.ipv6.he.net] has joined
#go-nuts
16:59 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
17:00 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has
joined #go-nuts
17:03 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has
quit [Client Quit]
17:11 -!- napsy [~luka@88.200.45.109] has quit [Ping timeout: 265 seconds]
17:11 -!- napsy [~luka@88.200.45.109] has joined #go-nuts
17:13 -!- ronnyy [~quassel@2001:6f8:12c6:1c86:224:1dff:fed7:9541] has quit [Remote
host closed the connection]
17:25 -!- awidegreen [~quassel@p5DF1CAA3.dip.t-dialin.net] has joined #go-nuts
17:30 -!- nigel_kerr [~Adium@97-85-48-8.dhcp.bycy.mi.charter.com] has quit [Quit:
Leaving.]
17:32 -!- binarypie [~binarypie@c-24-6-151-185.hsd1.ca.comcast.net] has joined
#go-nuts
17:32 -!- nigel_kerr [~Adium@97-85-48-8.dhcp.bycy.mi.charter.com] has joined
#go-nuts
17:34 -!- nigel_kerr1 [~Adium@97-85-48-8.dhcp.bycy.mi.charter.com] has joined
#go-nuts
17:37 -!- nigel_kerr [~Adium@97-85-48-8.dhcp.bycy.mi.charter.com] has quit [Ping
timeout: 245 seconds]
17:38 -!- teop [~teop@78.138.171.130] has quit [Read error: Operation timed out]
17:39 -!- d_m [d6@SDF.ORG] has joined #go-nuts
17:46 -!- napsy [~luka@88.200.45.109] has quit [Ping timeout: 240 seconds]
17:48 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
17:50 -!- terrex [~terrex@84.122.72.127.dyn.user.ono.com] has joined #go-nuts
17:53 -!- teop [~teop@78.138.171.130] has joined #go-nuts
17:59 < crazy2be> can you change the capacity of an array as required?
18:00 < Namegduf> No.
18:01 < Namegduf> Because an array is a block of memory, and you can't just
change the size of a block of memory at will; there's other stuff in there.
18:02 < Namegduf> You can, however, use the append() function and a slice on
an array, which will reallocate a bigger array if it has to and copy the data,
which is how vectors often work.
18:02 < cbeck> Do you know if it uses realloc?
18:02 < Namegduf> No, I don't.
18:03 <+iant> append uses realloc conceptually, in that it only allocates a
new array if the existing one is not large enough
18:03 < SirPsychoS> when was append() added?  just a few weeks ago I
remember writing something like func append(*[]int, int)
18:03 <+iant> it does not actually call realloc
18:03 <+iant> append is quite new
18:03 < SirPsychoS> ah, 10-27 release, just found it
18:04 < cbeck> iant: Ah, danke
18:04 < exch> Isn't it only in the development branch?  I have the latest
release and it's not there
18:05 < SirPsychoS> "* spec: append built-in (not yet implemented)." guess
it's only in the spec so far
18:05 < exch> ah right
18:05 -!- Arrow55 [~Arrow@bas9-quebec14-1168093772.dsl.bell.ca] has quit [Quit:
Leaving]
18:12 < uriel> implementation is in the current tree, not in any release,
wait until next week I guess ;)
18:16 -!- cenuij [~cenuij@78.122.184.175] has joined #go-nuts
18:16 -!- cenuij [~cenuij@78.122.184.175] has quit [Changing host]
18:16 -!- cenuij [~cenuij@base/student/cenuij] has joined #go-nuts
18:18 -!- KBme_ [~KBme@9angled-2-pt.tunnel.tserv5.lon1.ipv6.he.net] has joined
#go-nuts
18:19 < Tv> or just use container/Vector..
18:20 -!- KBme [~KBme@9angled-2-pt.tunnel.tserv5.lon1.ipv6.he.net] has quit [Read
error: Connection reset by peer]
18:20 -!- scarabx [~scarabx@c-76-19-43-200.hsd1.ma.comcast.net] has joined
#go-nuts
18:22 -!- jdpo [~joe@66-169-176-49.dhcp.ftwo.tx.charter.com] has joined #go-nuts
18:28 -!- KBme_ [~KBme@9angled-2-pt.tunnel.tserv5.lon1.ipv6.he.net] has quit [Read
error: Operation timed out]
18:28 -!- Fish [~Fish@9fans.fr] has joined #go-nuts
18:29 -!- jdpo [~joe@66-169-176-49.dhcp.ftwo.tx.charter.com] has quit [Remote host
closed the connection]
18:30 -!- KBme [~KBme@9angled-2-pt.tunnel.tserv5.lon1.ipv6.he.net] has joined
#go-nuts
18:30 -!- saschpe [~quassel@77-23-177-40-dynip.superkabel.de] has joined #go-nuts
18:32 -!- jdpo [~joe@66-169-176-49.dhcp.ftwo.tx.charter.com] has joined #go-nuts
18:33 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
18:36 < napsy> Is it possible to construct a data structure from JSON data?
18:38 < Tv> napsy: yes
18:39 < napsy> ok
18:39 -!- piyushmishra [~piyushmis@117.200.225.78] has joined #go-nuts
18:46 -!- b00m_chef [~watr@66.183.108.186] has joined #go-nuts
18:49 -!- jdpo [~joe@66-169-176-49.dhcp.ftwo.tx.charter.com] has quit [Remote host
closed the connection]
18:51 -!- jdpo [~joe@66-169-176-49.dhcp.ftwo.tx.charter.com] has joined #go-nuts
18:51 -!- wrtp [~rog@92.17.51.106] has joined #go-nuts
18:55 -!- jdpo [~joe@66-169-176-49.dhcp.ftwo.tx.charter.com] has quit [Remote host
closed the connection]
19:00 -!- SoniaKeys [~soniakeys@c-76-118-178-209.hsd1.ma.comcast.net] has joined
#go-nuts
19:01 -!- piyushmishra [~piyushmis@117.200.225.78] has quit [Quit: Leaving.]
19:05 -!- illya77 [~illya77@129-17-112-92.pool.ukrtel.net] has quit [Read error:
Connection reset by peer]
19:09 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has quit [Quit:
Leaving.]
19:09 -!- exch [~exch@h78233.upc-h.chello.nl] has quit [Read error: Connection
reset by peer]
19:10 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has joined #go-nuts
19:10 -!- exch [~exch@h78233.upc-h.chello.nl] has joined #go-nuts
19:10 -!- exch [~exch@h78233.upc-h.chello.nl] has quit [Read error: Connection
reset by peer]
19:12 -!- MaksimBurnin1 [~max@44.188-224-87.telenet.ru] has quit [Quit: Leaving.]
19:14 -!- MaksimBurnin [~max@44.188-224-87.telenet.ru] has joined #go-nuts
19:15 -!- exch [~exch@h78233.upc-h.chello.nl] has joined #go-nuts
19:19 < SirPsychoS> any recommendations on how to set up the build process
for a project in Go? I'm trying to decide between using 'Make.cmd'/'Make.pkg' from
the Go tree, writing a 'normal' Makefile, and using one of the build systems
listed on http://go-lang.cat-v.org/dev-utils
19:22 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has joined #go-nuts
19:24 -!- cenuij [~cenuij@base/student/cenuij] has quit [Remote host closed the
connection]
19:32 -!- photron [~photron@port-92-201-4-158.dynamic.qsc.de] has joined #go-nuts
19:32 -!- bjarneh [~bjarneh@1x-193-157-204-227.uio.no] has quit [Quit: leaving]
19:34 -!- saschpe [~quassel@77-23-177-40-dynip.superkabel.de] has quit [Remote
host closed the connection]
19:38 -!- napsy [~luka@88.200.96.18] has quit [Ping timeout: 276 seconds]
19:39 -!- TheMue [~TheMue@p5DDF7C95.dip.t-dialin.net] has joined #go-nuts
19:39 -!- napsy [~luka@88.200.45.109] has joined #go-nuts
19:42 -!- dho [~devon@onager.omniti.com] has quit [Remote host closed the
connection]
19:44 -!- b00m_chef [~watr@66.183.108.186] has quit [Ping timeout: 240 seconds]
19:47 -!- saschpe [~quassel@77-23-177-40-dynip.superkabel.de] has joined #go-nuts
19:59 -!- femtooo [~femto@95-89-197-196-dynip.superkabel.de] has joined #go-nuts
20:00 -!- saschpe [~quassel@77-23-177-40-dynip.superkabel.de] has quit [Remote
host closed the connection]
20:02 -!- femtoo [~femto@95-89-197-196-dynip.superkabel.de] has quit [Ping
timeout: 240 seconds]
20:10 -!- ako [~nya@fuld-4d00d4de.pool.mediaWays.net] has joined #go-nuts
20:12 -!- drobole [~drobole@145.84-49-242.nextgentel.com] has joined #go-nuts
20:14 -!- aho [~nya@fuld-4d00d31f.pool.mediaWays.net] has quit [Ping timeout: 252
seconds]
20:21 -!- ayo [~nya@fuld-4d00d75c.pool.mediaWays.net] has joined #go-nuts
20:24 -!- ako [~nya@fuld-4d00d4de.pool.mediaWays.net] has quit [Ping timeout: 252
seconds]
20:26 -!- napsy [~luka@88.200.45.109] has quit [Ping timeout: 240 seconds]
20:28 -!- napsy [~luka@88.200.96.18] has joined #go-nuts
20:28 -!- KBme [~KBme@9angled-2-pt.tunnel.tserv5.lon1.ipv6.he.net] has left
#go-nuts ["Once you know what it is you want to be true, instinct is a very useful
device for enabling you to know that it is"]
20:31 -!- KBme [~KBme@9angled-2-pt.tunnel.tserv5.lon1.ipv6.he.net] has joined
#go-nuts
20:42 -!- drobole [~drobole@145.84-49-242.nextgentel.com] has quit [Quit: leaving]
20:45 -!- TheSeeker [~n@99-153-250-110.lightspeed.irvnca.sbcglobal.net] has quit
[Ping timeout: 265 seconds]
20:50 < plexdev> http://is.gd/gxvya by [Rob Pike] in go/src/pkg/gob/ -- gob:
several fixes.
20:52 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
20:56 -!- nigel_kerr1 [~Adium@97-85-48-8.dhcp.bycy.mi.charter.com] has quit [Quit:
Leaving.]
21:00 -!- femtoo [~femto@95-89-197-196-dynip.superkabel.de] has joined #go-nuts
21:03 -!- pothos_ [~pothos@111-240-210-181.dynamic.hinet.net] has quit [Read
error: Connection reset by peer]
21:03 -!- femtooo [~femto@95-89-197-196-dynip.superkabel.de] has quit [Ping
timeout: 265 seconds]
21:04 -!- TheMue [~TheMue@p5DDF7C95.dip.t-dialin.net] has quit [Quit: TheMue]
21:05 -!- pothos [~pothos@111-240-211-11.dynamic.hinet.net] has joined #go-nuts
21:11 -!- artefon [~thiago@187.114.52.56] has joined #go-nuts
21:12 -!- TheMue [~TheMue@p5DDF7C95.dip.t-dialin.net] has joined #go-nuts
21:20 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection]
21:22 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has quit [Quit:
Leaving.]
21:22 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has joined #go-nuts
21:24 -!- Fish [~Fish@9fans.fr] has joined #go-nuts
21:28 -!- b00m_chef [~watr@66.183.108.186] has joined #go-nuts
21:30 -!- beneth` [~beneth`@beneth.fr] has quit [Quit: leaving]
21:37 -!- deso [~deso@x0561a.wh30.tu-dresden.de] has quit [Remote host closed the
connection]
21:38 -!- TheMue [~TheMue@p5DDF7C95.dip.t-dialin.net] has quit [Quit: TheMue]
21:39 -!- zozoR [~zozoR@5634798d.rev.stofanet.dk] has quit [Quit: Morten.  Desu~]
21:40 -!- wrtp [~rog@92.17.51.106] has quit [Read error: Connection reset by peer]
21:40 -!- wrtp [~rog@92.17.51.106] has joined #go-nuts
21:55 -!- nsf [~nsf@jiss.convex.ru] has quit [Quit: WeeChat 0.3.3]
21:55 -!- SRabbelier [~SRabbelie@ip138-114-211-87.adsl2.static.versatel.nl] has
joined #go-nuts
22:01 -!- |Craig| [~|Craig|@panda3d/entropy] has joined #go-nuts
22:01 -!- femtooo [~femto@95-89-197-196-dynip.superkabel.de] has joined #go-nuts
22:02 -!- skejoe [~skejoe@188.114.142.231] has quit [Quit: leaving]
22:04 -!- femtoo [~femto@95-89-197-196-dynip.superkabel.de] has quit [Ping
timeout: 245 seconds]
22:07 < plexdev> http://is.gd/gxDOO by [Rob Pike] in go/src/pkg/gob/ -- gob:
update documentation about wire format for interfaces.
22:08 -!- go-nuts [~nigelkerr@pr1fw01.ithaka.org] has joined #go-nuts
22:18 -!- gnuvince_ [~vince@70.35.165.60] has quit [Quit: Lost terminal]
22:20 -!- Project_2501 [~Marvin@dynamic-adsl-94-36-152-44.clienti.tiscali.it] has
quit [Quit: BAIL OUT!  BAIL OUT!  BAIL OUT!]
22:24 -!- fenicks [~christian@log77-3-82-243-254-112.fbx.proxad.net] has joined
#go-nuts
22:24 < fenicks> hello
22:35 -!- terrex [~terrex@84.122.72.127.dyn.user.ono.com] has quit [Quit:
Leaving.]
22:38 -!- tumdum [~tumdum@unaffiliated/tumdum] has quit [Quit: tumdum]
22:46 -!- rlab [~Miranda@91.200.158.34] has quit [Quit: Miranda IM! Smaller,
Faster, Easier.  http://miranda-im.org]
22:53 -!- wrtp [~rog@92.17.51.106] has quit [Quit: wrtp]
22:53 -!- femtooo [~femto@95-89-197-196-dynip.superkabel.de] has quit [Quit:
Leaving]
22:56 -!- nsf [~nsf@jiss.convex.ru] has joined #go-nuts
23:00 -!- photron [~photron@port-92-201-4-158.dynamic.qsc.de] has quit [Ping
timeout: 240 seconds]
23:14 -!- awidegreen [~quassel@p5DF1CAA3.dip.t-dialin.net] has quit [Remote host
closed the connection]
23:18 -!- go-nuts [~nigelkerr@pr1fw01.ithaka.org] has quit [Quit: go-nuts]
23:31 -!- Fish [~Fish@9fans.fr] has quit [Remote host closed the connection]
23:33 -!- |Craig| [~|Craig|@panda3d/entropy] has quit [Quit: |Craig|]
23:51 < sauerbraten> I've got person["name"], which return's a string
"mike".  now I have to convert it to string, because person is of type
map[string]interface{}.  How do i do that?
23:51 < cbeck> sauerbraten:
http://golang.org/doc/go_spec.html#Type_assertions
23:52 < exch> sauerbraten: A type assertion
23:52 < exch> name := person["name"].(string)
23:52 -!- __david__ [~daviddavi@cpe-98-151-185-99.socal.res.rr.com] has quit
[Quit: __david__]
23:54 -!- __david__ [~david@cpe-98-151-185-99.socal.res.rr.com] has joined
#go-nuts
23:58 < uriel> sauerbraten: why is person of type map[string]interface{}?
23:58 < uriel> and not map[string]string
23:58 < uriel> or map[string]SomeOtherType
23:58 -!- devrim [~Adium@cpe-72-225-239-227.nyc.res.rr.com] has quit [Quit:
Leaving.]
--- Log closed Mon Nov 01 00:00:13 2010