# case-transformer: golang library for code case transformation [![Build Status](https://travis-ci.org/Hepri/case-transformer.png?branch=master)](https://travis-ci.org/Hepri/case-transformer)

## Installation

Install:

    go get github.com/Hepri/case-transformer

## Usage

Possible transformations:
- camelCase
- PascalCase
- snake_case (underscore)
- kebab-case

```
// -> 'someString'
StringToCamelCase('SomeString')

// -> 'SomeString'
StringToPascalCase('someString')

// -> 'some_string'
StringToSnakeCase('someString')

// -> 'some_string'
StringToUnderscore('someString')

// -> 'some-string'
StringToKebabCase('someString')
```

# case-transformer: golang library for code case transformation [![Build Status](https://travis-ci.org/Hepri/case-transformer.png?branch=master)](https://travis-ci.org/Hepri/case-transformer)

## Installation

Install:

    go get github.com/Hepri/case-transformer

## Usage

Possible transformations:
- camelCase
- PascalCase
- snake_case (underscore_case)
- kebab-case

```
package main

import (
    "fmt"
    "github.com/Hepri/case-transformer"
)

func main() {
    // myTestString
    fmt.Println(case_transformer.StringToCamelCase("my test string"))
    // MyTestString
    fmt.Println(case_transformer.StringToPascalCase("my test string"))
    // my_test_string
    fmt.Println(case_transformer.StringToSnakeCase("my test string"))
    // my_test_string
    fmt.Println(case_transformer.StringToUnderscore("my test string"))
    // my-test-string
    fmt.Println(case_transformer.StringToKebabCase("my test string"))
}

```

Update readme with full example
Update readme with full example
