Source

This example runs in your browser using wasm, so there is a limitation that you cannot use import "package" including standard library.

go-mock-gen will generate code for all interfaces defined in your source. In the editor below, the generated code is highlighted with a yellow background, while the example usage is shown on the right with a green background

Generated code

Usage example