8000 Call `ToCamelCase` with a single char string results in empty string · Issue #43 · huandu/xstrings · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000
Call ToCamelCase with a single char string results in empty string #43
Closed
@huangjunwen

Description

@huangjunwen

Test case (https://play.golang.org/p/0c_RiL_p3av):

package main                                                                                                                                             

import (
  "fmt"
  "github.com/huandu/xstrings"
)

func main() {
  fmt.Printf(">> %+q\n", xstrings.ToCamelCase("a"))
  fmt.Printf(">> %+q\n", xstrings.ToCamelCase("ab"))
}

Which will output

>> ""
>> "Ab"

go version: go1.13 linux/amd64
xstrings version: 1.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0