conf2toml

package module
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2017 License: MIT Imports: 10 Imported by: 0

README

Circle CI Coverage Status License

conf2toml

Description

Convert QNAP NAS conf to valide toml format.
Inspired by gotoml

This tool isn't release, so many bug and not support all data type.

Install

To install, use go get:

$ go get github.com/cage1016/conf2toml

Contribution

  1. Fork (https://github.com/cage1016/conf2toml/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Run test suite with the make test command and confirm that it passes
  6. Run gofmt -s
  7. Create a new Pull Request

Author

kaichu.io

Licence

MIT: https://github.com/cage1016/conf2toml/blob/master/LICENSE

Documentation

Index

Constants

View Source
const (
	StarWithEe string = `^[eE].*`
	Pair       string = `([^=]*)=(.*)`
	Trans      string = "[[:punct:]]|[[:space:]]"
)

Variables

This section is empty.

Functions

func Normalization

func Normalization(path string) ([]byte, error)

func NormalizationReader added in v0.1.1

func NormalizationReader(input io.Reader) *os.File

Types

This section is empty.

Jump to

Keyboard shortcuts

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