codegen

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoubleSlashComment

func DoubleSlashComment(s string) string

func EscapeBacktick

func EscapeBacktick(s string) string

Go string literals cannot contain backtick. If a string contains a backtick, replace it the following way:

input:

SELECT `group` FROM foo

output:

SELECT ` + "`" + `group` + "`" + ` FROM foo

The escaped string must be rendered inside an existing string literal

A string cannot be escaped twice

func LowerTitle

func LowerTitle(s string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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