muxgen

command
v1.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

muxgen generates code to easily call functions on the endpoint

type myEndpoint struct {
 // ...
}

// go:generate muxgen -outtype []byte *myEndpoint async whoami // go:generate muxgen -args id:string *myEndpoint source getFeedStream // go:generate muxgen -args id:string *myEndpoint source blobs.get // go:generate muxgen -args id:string -outtype bool *myEndpoint aysnc blobs.has

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL