config_list

package
v0.0.0-...-48fba18 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

README

列表配置文件.list

func main() {
	filename := fmt.Sprintf("%s%s", os.Args[0], ".list")
	conf, err := config_list.Parse(`^[a-z0-9]+.+[a-z0-9]+$`, filename)
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error: %s\n", err)
		os.Exit(1)
	}

	fmt.Println(conf)
}

Documentation

Overview

* Create time: 2021-12-21 * Update time: 2021-12-21

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(expr, filename string) ([]string, error)

Types

type Conf

type Conf struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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