urlpol.go gives undefined: log.Stdout

162 views
Skip to first unread message

toxicnaan

unread,
Nov 8, 2010, 6:51:37 AM11/8/10
to golang-nuts
Hi,

I am new to go, and trying out a few tutorials and examples.

http://golang.org/doc/codewalk/sharemem/

gives

urlpol.go:55: undefined: log.Stdout
urlpol.go:57: undefined: log.Stdoutf
urlpol.go:72: undefined: log.Stderr


with 8g -V
8g version 6696

I presume the logging has changed in log.go,

any pointers would be helpful.

Cheers,
Lee







Ibrahim M. Ghazal

unread,
Nov 8, 2010, 7:51:30 AM11/8/10
to golang-nuts
The log package changed few weeks ago[1] but the codewalk hasn't been
updated yet. You need to replace these calls with log.Print and
log.Printf.

[1] http://golang.org/doc/devel/release.html#2010-10-13

toxicnaan

unread,
Nov 8, 2010, 11:08:24 AM11/8/10
to golang-nuts
Yes, that fixed the problem. These are small changes, but how does one
go about fixing the codewalk at
http://golang.org/doc/codewalk/sharemem/ .

andrey mirtchovski

unread,
Nov 8, 2010, 11:26:08 AM11/8/10
to toxicnaan, golang-nuts
Reply all
Reply to author
Forward
0 new messages