File: gen.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 (22 lines) | stat: -rw-r--r-- 448 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
22
// +build ignore

// gen downloads an updated version of the PSL list and compiles it into go code.
//
// It is meant to be used by maintainers in conjunction with the go generate tool
// to update the list.
package main

import (
	"github.com/weppos/publicsuffix-go/publicsuffix/generator"
)

const (
	// where the rules will be written
	filename = "rules.go"
)

func main() {
	g := generator.NewGenerator()
	g.Verbose = true
	g.Write(filename)
}