util

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package util is an internal utility.

This package provides a name convertion between a column and a field. Currently Goq assumes that a field name uses pascal case (e.g. UserID) and a column name uses snake case (e.g. user_id).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColToFld

func ColToFld(name string) string

ColToFld converts a column name to field name. This conversion will be incorrect in some cases. Example:

FldToCol("UserID") //=> "user_id"
ColToFld("user_id") //=> "UserId"

func FldToCol

func FldToCol(name string) string

FldToCol converts a field name to column name.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL