Help us shape the future of Go! Take the 2026 Go Developer Survey

mqttmatch

package module
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2017 License: MIT Imports: 1 Imported by: 0

README

mqtt-match GoDoc Build Status

Match mqtt formatted topic strings to strings, e.g. foo/+ should match foo/bar.

Usage
import (
    "fmt"
    mqtttopic "github.org/farshidtz/mqtt-match"
)

fmt.Println(mqtttopic.Match("foo/+", "foo/bar"))
// true
Copyrights Notice

This package is a translation of mqtt-match for Go.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match

func Match(filter, topic string) bool

Match checks whether the filter and topic match

Types

This section is empty.

Jump to

Keyboard shortcuts

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