Skip to content

godoes/snaker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snaker

Build Status GoDoc

This is a small utility to convert camel cased strings to snake case and back, except some defined words.

QBS Usage

To replace the original toSnake and back algorithms for https://github.com/coocood/qbs you can easily use snaker:

Import snaker

import (
  github.com/coocood/qbs
  github.com/godoes/snaker
)

Register the snaker methods to qbs

qbs.ColumnNameToFieldName = snaker.SnakeToCamel
qbs.FieldNameToColumnName = snaker.CamelToSnake

About

🐫 This is a small utility to convert camel cased strings to snake case and back, except some defined words

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Go 78.5%
  • Batchfile 21.5%