codegen

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 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 added in v1.5.0

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

func Title added in v1.9.0

func Title(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