1
0
mirror of https://github.com/MADTeacher/go_basics.git synced 2025-11-23 21:34:47 +02:00
Files
go_basics/part_5/5.2/7.go
2025-06-14 12:40:10 +03:00

17 lines
172 B
Go

package main
import (
"fmt"
"log"
"os"
)
func main() {
path, err := os.Getwd()
if err != nil {
log.Fatal(err)
}
fmt.Println(path) // e:\code\golang\directory
}