zach-klippenstein / goadb

A Golang library for interacting with adb.
Apache License 2.0
231 stars 107 forks source link

Building demo.go #35

Open wills721 opened 3 years ago

wills721 commented 3 years ago

Sorry in advance for the newbie question. I am new to go and new to goadb.

I am trying to build the demo.go app on Windows and while I did do the requisite go get's for both goadb and the internal/errors I see this error:

C:\goadb>go build demo.go demo.go:11:2: no required module provides package github.com/zach-klippenstein/goadb: working directory is not part of a module demo.go:12:2: no required module provides package github.com/zach-klippenstein/goadb/internal/errors: working directory is not part of a module

Can someone help or point me to any link to get me started?

Thanks, Will

tslocum commented 3 years ago

Create a new directory, cd to it, copy demo.go to it, then run go mod init adbdemo before running go build again.