Go
Building Go Applications
Section titled “Building Go Applications”Prerequisites
Section titled “Prerequisites”- Go 1.27 or later (recommended)
- Git (required for building from source)
- (Optional, recommended) Local certificate tool mkcert (for TLS usage)
-
Initialize Go module
If you haven’t already, initialize a Go module in your project directory.
Terminal window go mod init [module_name] -
Get gomoqt
Download the package in your Go environment.
Terminal window go get github.com/qumo-dev/gomoqt -
Importing packages
gomoqt provides the following packages, which can be imported into your Go application.
moqtis the main package and the only one most applications need:Import Path Description github.com/qumo-dev/gomoqt/moqtMain package implementing the core logic for Media over QUIC. github.com/qumo-dev/gomoqt/msfMOQT Streaming Format — catalogs, catalog deltas, and timeline records. github.com/qumo-dev/gomoqt/transportAbstraction and interface definitions for the QUIC/WebTransport layer used by moqt.
Wrapsquic-go/quic-goandokdaichi/webtransport-go, whichmoqtuses by default.Example of importing the
moqtpackage:import ("github.com/qumo-dev/gomoqt/moqt")