[go-nuts] go vet on playground emits message on printf %x with floating point

2020-03-03 Thread bupjae
Playground: https://play.golang.org/p/2j2PlKwiA7B Source code: package main import ( "fmt" ) func main() { fmt.Printf("%x\n", 5.0/7.0) } Expected: No message emits by go vet Actual: go vet emits the following message: ./prog.go:8:2: Printf format %x has arg 5.0 / 7.0 of wrong type

[go-nuts] Order of evaluation question

2018-04-08 Thread bupjae
Consider the following program: https://play.golang.org/p/_RjR5dCQ_KW package main import ( "bufio" "strings" "fmt" ) const data = "short\nthisisverylonglong\n" var in = bufio.NewScanner(strings.NewReader(data)) func next() []byte { in.Scan() return in.Bytes() } func main() { in.B

Re: [go-nuts] Re: text/template: cannot index from map[int32]string

2017-05-20 Thread bupjae
I reported this as issue #20439. Thanks. By the way, I'm still finding how to workaround. 2017년 5월 21일 일요일 오전 1시 11분 26초 UTC+9, Ian Lance Taylor 님의 말: > On Sat, May 20, 2017 at 7:55 AM, > wrote: > > One additional question: may I report this as bu

[go-nuts] Re: text/template: cannot index from map[int32]string

2017-05-20 Thread bupjae
One additional question: may I report this as bug of golang? 2017년 5월 20일 토요일 오후 11시 51분 56초 UTC+9, bup...@gmail.com 님의 말: > > Go Source: > https://play.golang.org/p/dMKNy4pTnb > > Expected: > > [ ok] Element 0 is zero > [ ok] Element 0 is zero > [ ok] Element 0 is zero > > Actual: > > [ ok] Eleme

[go-nuts] text/template: cannot index from map[int32]string

2017-05-20 Thread bupjae
Go Source: https://play.golang.org/p/dMKNy4pTnb Expected: [ ok] Element 0 is zero [ ok] Element 0 is zero [ ok] Element 0 is zero Actual: [ ok] Element 0 is zero [ ok] Element 0 is zero [err] template: :1:15: executing "" at : error calling index: value has type int; should be int32 I think

[go-nuts] bufio: Scanner.Split starts panic when Scan is already called

2016-09-25 Thread bupjae
(Note: This is complain rather than real bug report. So I wrote here instead of github issue tracker) Related code: https://play.golang.org/p/7l0pUOrX_t Background: This code is intended to submit to online judge site (i.e. provides programming questions and judge system to check whether the s