Skip to content

x-punch/go-strings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Strings

This is a project used to enhance string in golang, reduce duplicate codes for handling string in different scenario.

Usage

go get github.com/x-punch/go-strings
package main

import (
    "fmt"

    "github.com/x-punch/go-strings"
)

func main() {
    fmt.Println(strings.GetRandomString(10))
    fmt.Println(strings.GetRandomNumber(4))
    fmt.Println(strings.SubString("abcdefg", 2, 10))
    fmt.Println(strings.ContainString("abc,def,g", ",", "def"))
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages