gitee.com/quant1x/gox@v1.21.2/api/README-go-strcase.md (about)

     1  [![CircleCI](https://circleci.com/gh/stoewer/go-strcase/tree/master.svg?style=svg)](https://circleci.com/gh/stoewer/go-strcase/tree/master)
     2  [![codecov](https://codecov.io/gh/stoewer/go-strcase/branch/master/graph/badge.svg)](https://codecov.io/gh/stoewer/go-strcase)
     3  [![GoDoc](https://godoc.org/github.com/stoewer/go-strcase?status.svg)](https://pkg.go.dev/github.com/stoewer/go-strcase)
     4  ---
     5  
     6  Go strcase
     7  ==========
     8  
     9  The package `strcase` converts between different kinds of naming formats such as camel case 
    10  (`CamelCase`), snake case (`snake_case`) or kebab case (`kebab-case`).
    11  The package is designed to work only with strings consisting of standard ASCII letters. 
    12  Unicode is currently not supported.
    13  
    14  Versioning and stability
    15  ------------------------
    16  
    17  Although the master branch is supposed to remain always backward compatible, the repository
    18  contains version tags in order to support vendoring tools.
    19  The tag names follow semantic versioning conventions and have the following format `v1.0.0`.
    20  This package supports Go modules introduced with version 1.11.
    21  
    22  Example
    23  -------
    24  
    25  ```go
    26  import "github.com/stoewer/go-strcase"
    27  
    28  var snake = strcase.SnakeCase("CamelCase")
    29  ```
    30  
    31  Dependencies
    32  ------------
    33  
    34  ### Build dependencies
    35  
    36  * none
    37  
    38  ### Test dependencies
    39  
    40  * `github.com/stretchr/testify`
    41  
    42  Run linters and unit tests
    43  -------------------------- 
    44  
    45  To run the static code analysis, linters and tests use the following commands:
    46  
    47  ```
    48  golangci-lint run --config .golangci.yml ./...
    49  go test ./...
    50  ```