package main

import (
	"fmt"
	"log"

	"github.com/yofu/dxf"
	"github.com/yofu/dxf/entity"
)

func main() {
	dr, err := dxf.FromFile("point.dxf")
	if err != nil {
		log.Fatal(err)
	}
	for _, e := range dr.Entities() {
		if p, ok := e.(*entity.Point); ok {
			fmt.Println(p.Coord)
		}
	}
}

package main

import (
	"fmt"
	"log"

	"github.com/yofu/dxf"
	"github.com/yofu/dxf/entity"
)

func main() {
	dr, err := dxf.Open("point.dxf")
	if err != nil {
		log.Fatal(err)
	}
	for _, e := range dr.Entities() {
		if p, ok := e.(*entity.Point); ok {
			fmt.Println(p.Coord)
		}
	}
}

--- 
+++ 
@@ -9,7 +9,7 @@
 )
 
 func main() {
-	dr, err := dxf.Open("point.dxf")
+	dr, err := dxf.FromFile("point.dxf")
 	if err != nil {
 		log.Fatal(err)
 	}
Move to new func name
