Skip to content

pandudpn/go-masking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Masking

Masking any character with Go language.

How to use

You must install this package into your module

go get github.com/pandudpn/go-masking

After installing, you can run code like this

package main

import (
	masking "github.com/pandudpn/go-masking"
	"fmt"
)

func main() {
	// example want to mask password
	pwd := "abcdefghijklmnopqrstuvwxyz"
	result := masking.String(masking.Password, pwd) // will return *********
	fmt.Println(result)
}

Or you can check the Example.