Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chai2010/cident

C标识符 - 生成C标识符
https://github.com/chai2010/cident

Last synced: 3 months ago
JSON representation

C标识符 - 生成C标识符

Awesome Lists containing this project

README

        

# C标识符 - 生成C标识符

```go
package main

import (
"fmt"

"github.com/chai2010/cident"
)

func main() {
fmt.Println(cident.New("main", "main"))
fmt.Println(cident.New("path/to/pkg", "main", "count"))
fmt.Println(cident.New("github.com/chai2010/pbgo", "HttpRule"))
fmt.Println(cident.New("主包", "主函数"))

// Output:
// $main_$main
// $path_to_pkg_$main_$count
// $github_com_chai2010_pbgo_$HttpRule
// $主包_$主函数
}
```