Skip to content

Commit

Permalink
testdata: add userplots testscript
Browse files Browse the repository at this point in the history
  • Loading branch information
arl committed Mar 29, 2023
1 parent 0956990 commit ef62197
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions testdata/userplots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
cp $STATSVIZ_ROOT/_example/userplots/main.go .
cp $STATSVIZ_ROOT/_example/userplots/go.mod .

go mod edit -replace=github.com/arl/statsviz=$STATSVIZ_ROOT
go mod edit -replace=github.com/arl/statsviz/_example=$STATSVIZ_ROOT/_example
go mod tidy

# Start an HTTP server with a statsviz endpoint
go build main.go
! exec ./main &
checkui http://localhost:8093/debug/statsviz/

0 comments on commit ef62197

Please sign in to comment.