Set GOPATH as the location of your workspace. E.g. set GOPATH=f:\go-project
Create your package path. E.g. mkdir %GOPATH%\src\github.com\dynamsoftsamples\go-barcode-reader\dbr
Copy DynamsoftBarcodeReaderx64.dll to %GOPATH%\src\github.com\dynamsoftsamples\go-barcode-reader\dbr\bin
Change directory to %GOPATH% and compile the package with go install github.com\dynamsoftsamples\go-barcode-reader\dbr. Alternatively, you can change directory to %GOPATH%\src\github.com\dynamsoftsamples\go-barcode-reader\dbr and compile the package with go install.
A package dbr.a will be generated at %GOPATH%\pkg\windows_amd64\github.com\dynamsoftsamples\go-barcode-reader.