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
+6.1k Golang : How to write backslash in string?
+22.3k Golang : Read directory content with filepath.Walk()
+19.6k Golang : Set or Add HTTP Request Headers
+20.9k Golang : Convert PNG transparent background image to JPG or JPEG image
+9.4k Golang : Terminate-stay-resident or daemonize your program?
+8.9k Golang : Gaussian blur on image and camera video feed examples
+11.4k Golang : Concatenate (combine) buffer data example
+10.1k Golang : How to tokenize source code with text/scanner package?
+32.2k Golang : Convert []string to []byte examples
+9.7k Golang : Eroding and dilating image with OpenCV example
+19.5k Golang : How to Set or Add Header http.ResponseWriter?
+51.4k Golang : Check if item is in slice/array