os-go-netloc-rule

command module
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: MIT Imports: 3 Imported by: 0

README

os-go-netloc-rule

Build Status codecov go.dev reference

A common library for netloc rule use case.

Python Version

Install

You can get the library with go get

go get -u github.com/cfhamlet/os-go-netloc-rule

Usage

package main

import (
	"fmt"

	"github.com/cfhamlet/os-go-netloc-rule/matcher"
	"github.com/cfhamlet/os-go-netloc-rule/netloc"
)

func main() {
	matcher := matcher.New()
	matcher.Load(netloc.New(".google.com", "80", "http"), 1)
	fmt.Println(matcher.MatchURL("http://www.google.com:80/test/"))
}

License

MIT licensed.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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