go-adblock-filter-counter – github.com/igorskyflyer/go-adblock-filter-counter Index | Files

package abcounter

import "github.com/igorskyflyer/go-adblock-filter-counter"

Index

Functions

func CountFileRules

func CountFileRules(filename string) (int, error)

Counts Adblock filter rules found in the provided file.

It returns the number of filter rules or -1 in case of an error.

func CountRules

func CountRules(source string) int

Counts Adblock filter rules found in the provided string.

It returns the number of filter rules.

Source Files

abcounter.go

Version
v1.0.1 (latest)
Published
Jul 14, 2023
Platform
linux/amd64
Imports
3 packages
Last checked
2 months ago

Tools for package owners.