You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
I have a rather simple request - I am not sure if this already exists but I'd like to avoid typing "\n" everytime I do Printf( ) even though I quite enjoy doing that. Is there an inbuilt library function that does this?
Thanks
Anirudh
Karan Chaudhary
unread,
May 23, 2018, 3:35:36 AM5/23/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
I don't know if its a good idea to have this in stdlib, but you can definitely write your own to solve the problem :)
package main
import (
"fmt"
)
func Printfln(format string, a ...interface{}) {
fmt.Printf(format + "\n", a...)
}
func main() {
Printfln("%s is awesome!", "Go")
fmt.Println("yup")
}
Jan Mercl
unread,
May 23, 2018, 3:49:28 AM5/23/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message