Skip to content

Inflection is a string transformation library. It transforms strings from CamelCase to underscored string.

Notifications You must be signed in to change notification settings

buxizhizhoum/inflection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inflection

Inflection is a string transformation library. It transforms strings from CamelCase to underscored string. This is an implement of Inflection package in Python.

examples

    import (
        "fmt"
        "github.com/buxizhizhoum/inflection"
    )

    func example () {
        // to convert a string to underscore
        res := inflection.Underscore("aA")
        // will return a_a
        fmt.Println(res)
        // to convert a string to camelize
        // will return AA
        fmt.Println(inflection.Camelize("a_a", true))
    }

About

Inflection is a string transformation library. It transforms strings from CamelCase to underscored string.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages