mirror of
https://github.com/avelino/awesome-go.git
synced 2024-11-07 16:33:40 +00:00
24 lines
228 B
Go
24 lines
228 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
)
|
|
|
|
var (
|
|
newFile *os.File
|
|
err error
|
|
)
|
|
|
|
func main() {
|
|
|
|
/*
|
|
Boş Dosya Oluşturma (Create Empty File)
|
|
*/
|
|
|
|
newFile, err = os.Create("demo.txt")
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
}
|