Skip to content

Example of using Rod for testing a Go-App application

License

Notifications You must be signed in to change notification settings

oderwat/rodgoapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rodgoapp

Example of using Rod for testing a Go-App application.

This actually is made to demonstrate a problem with rod not being able to hijack a request and change it to have an empty body.

Some info

As this is backend and frontend where the frontend runs as WASM, there are two components to compile. I separate part of the code by using build tags.

Run the test

Running the test is done by:

GOARCH=wasm GOOS=js go build -o web/app.wasm && \
go build -o tester && \
./tester

or simpler like this:

go generate && ./tester

About

Example of using Rod for testing a Go-App application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages