FAQ
Ah. That's right. A single quote is a "rune constant" and comparable with a rune.
Thanks for the feedback!
On Sep 24, 2014, at 9:56 PM, Jesse McNelis wrote:
On Thu, Sep 25, 2014 at 2:50 PM, Eli Janssen wrote:
gostrftime - strftime for Go

Poorly named, and of dubious utility.
However, I needed it for a project and thought someone else might find it useful too.

https://github.com/cactus/gostrftime
func strftime(b *bytes.Buffer, c string, t time.Time) error
Since you're using 'c' as just a rune anyway you may as well just pass
the rune in and avoid the string creation.

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 8 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedSep 25, '14 at 4:51a
activeSep 26, '14 at 8:27a
posts8
users4
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase