Registry /
networking / multiformats-go-multistream
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
multistream
✓ github.com/multiformats/go-multistream
Create a multistream muxer and add a handler.
package main
import (
"fmt"
"github.com/multiformats/go-multistream"
)
func main() {
ms := multistream.NewMultistreamMuxer()
ms.AddHandler("/hello/1.0.0", func(protocol string, rwc io.ReadWriteCloser) error {
fmt.Fprintf(rwc, "Hello!")
return nil
})
fmt.Println("Multistream muxer created")
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.6.1latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.