mirror of
https://github.com/avelino/awesome-go.git
synced 2024-11-14 16:42:23 +00:00
19 lines
206 B
Go
19 lines
206 B
Go
package main
|
||
|
||
import (
|
||
"os"
|
||
"log"
|
||
)
|
||
|
||
func main() {
|
||
|
||
/*
|
||
Hızlıca Dosya Yazma (Quick Write to File)
|
||
*/
|
||
|
||
err := os.WriteFile("demo.txt", []byte("Hi!\n"), 0666)
|
||
if err != nil {
|
||
log.Fatal(err)
|
||
}
|
||
}
|