hirochachacha / go-smb2

SMB2/3 client library written in Go.
BSD 2-Clause "Simplified" License
350 stars 94 forks source link

Fix variable name in example. #64

Closed awrznc closed 2 years ago

awrznc commented 2 years ago

Hi, thanks for this useful implementation.

I tried the example in README.md and got a build error, so I fixed the part where the error occurred.

The following process an error occurred:

$ go version
go version go1.18.1 linux/amd64

$ go build
# example
./main.go:45:64: fs.DirEntry undefined (type *"github.com/hirochachacha/go-smb2".Share has no field or method DirEntry)

References of implementation:

https://github.com/hirochachacha/go-smb2/blob/82da9adcf15307deb147fbe4a0732d0e0b657e2c/smb2_fs_test.go#L60

hirochachacha commented 2 years ago

Thanks!