Golang io.WriteString function example
package io
Golang io.WriteString function usage example
package main
import (
"io"
"os"
)
func main() {
// output to screen
io.WriteString(os.Stdout, "Hello World! 你好!")
}
Output :
Hello World! 你好!
Reference :
Advertisement
Something interesting
Tutorials
+7.9k Golang : Get today's weekday name and calculate target day distance example
+38.1k Golang : Read a text file and replace certain words
+7.5k Golang : Shuffle strings array
+8.9k Golang : Sort lines of text example
+7.2k CloudFlare : Another way to get visitor's real IP address
+8.6k Golang : Set or add headers for many or different handlers
+7.3k Golang : How to fix html/template : "somefile" is undefined error?
+22.7k Golang : Set and Get HTTP request headers example
+27.6k Golang : dial tcp: too many colons in address
+17.9k Golang : Simple client server example
+23.5k Golang : Get ASCII code from a key press(cross-platform) example