Popularity
1.1
Stable
Activity
5.4
Declining
5
2
1

Programming language: Go
Tags: Go Tools     Go     Golang     Sanitizer     Regex    
Latest version: v1.0.10

go-sanitize alternatives and similar packages

Based on the "Go Tools" category

Do you think we are missing an alternative of go-sanitize or a related project?

Add another 'Go Tools' Package

README

go-sanitize

go-sanitize implements a simple library of sanitation methods for data sanitation and reduction.

Go Build Status Report Codacy Badge Release standard-readme compliant GoDoc

Table of Contents

Installation

go-sanitize requires a supported release of Go.

$ go get -u github.com/mrz1836/go-sanitize

Documentation

You can view the generated documentation here.

Examples & Tests

All unit tests and [examples](sanitize_test.go) run via Travis CI and uses Go version 1.13.x. View the [deployment configuration file](.travis.yml).

$ cd ../go-sanitize
$ go test ./... -v

Benchmarks

Run the Go [benchmarks](sanitize_test.go):

$ cd ../go-sanitize
$ go test -bench . -benchmem

Code Standards

Read more about this Go project's [code standards](CODE_STANDARDS.md).

Usage

  • View the [examples](sanitize_test.go)
  • View the [benchmarks](sanitize_test.go)
  • View the [tests](sanitize_test.go)

Basic implementation:

package main

import (
    "fmt"
    "github.com/mrz1836/go-sanitize"
)

func main() {

    //Execute and print
    fmt.Println(sanitize.IPAddress("  ##!192.168.0.1!##  "))

    // Output: 192.168.0.1
}

Maintainers

@MrZ

Contributing

View the [contributing guidelines](CONTRIBUTING.md) and follow the [code of conduct](CODE_OF_CONDUCT.md).

Support the development of this project πŸ™

Donate

License

License


*Note that all licence references and agreements mentioned in the go-sanitize README section above are relevant to that project's source code only.