File: main.go

package info (click to toggle)
golang-github-weppos-publicsuffix-go 0.30.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 484 kB
  • sloc: makefile: 16; sh: 9
file content (21 lines) | stat: -rw-r--r-- 349 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// +build ignore

package main

import (
	"fmt"
	"time"

	"github.com/weppos/publicsuffix-go/publicsuffix"
)

func main() {
	startTime := time.Now()
	defer func() {
		elapsed := time.Since(startTime)
		elapsed -= elapsed % 1000000
		fmt.Printf("Time elapsed: %s\n", elapsed)
	}()

	fmt.Printf("%d rules loaded\n", publicsuffix.DefaultList.Size())
}