mirror of
https://github.com/Fishwaldo/go-dcdc200.git
synced 2025-03-15 11:31:22 +00:00
Update readme according to godoc
This commit is contained in:
parent
cebf81ba5f
commit
43a1551299
1 changed files with 5 additions and 2 deletions
|
@ -24,9 +24,12 @@ is a Simulator Mode that replays a previously captured session.
|
|||
```golang
|
||||
|
||||
dc := dcdcusb.DcDcUSB{}
|
||||
dc.Init(stdlogger.DefaultLogger(), false)
|
||||
logsink := log.New(os.Stdout, "", 0)
|
||||
log := stdr.New(logsink)
|
||||
|
||||
dc.Init(log, false)
|
||||
if ok, err := dc.Scan(); !ok {
|
||||
log.Fatalf("Scan Failed: %v", err)
|
||||
log.Error(err, "Scan Failed")
|
||||
return
|
||||
}
|
||||
defer dc.Close()
|
||||
|
|
Loading…
Add table
Reference in a new issue