Home

Awesome

go-validate-npm-package-name

PRs Welcome Go Report Card Go Project Layout Go Doc License: MIT Template from jarvis

Install

go get github.com/Armour/go-validate-npm-package-name/cmd/validate

Example

package main

import (
	"fmt"

	"github.com/Armour/go-validate-npm-package-name/cmd/validate"
)

func main() {
	r := validate.Validate("go-validate-npm-package-name")
	fmt.Println(r.ValidForNewPackages, r.ValidForOldPackages)
	if len(r.Errors) != 0 {
		fmt.Println(r.Errors)
	}
	if len(r.Warnings) != 0 {
		fmt.Println(r.Warnings)
	}
}

Contributing

See CONTRIBUTING.md

License

MIT License