Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chai2010/cident
C标识符 - 生成C标识符
https://github.com/chai2010/cident
Last synced: 3 months ago
JSON representation
C标识符 - 生成C标识符
- Host: GitHub
- URL: https://github.com/chai2010/cident
- Owner: chai2010
- License: bsd-3-clause
- Created: 2019-03-15T23:15:41.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-15T23:59:57.000Z (almost 6 years ago)
- Last Synced: 2024-10-06T01:18:23.724Z (3 months ago)
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# C标识符 - 生成C标识符
```go
package mainimport (
"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
// $主包_$主函数
}
```