Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Question represents a '?' placeholder parameter. Question = iota // Dollar represents a '$1', '$2'... placeholder parameters. Dollar // AtMark represents a '@1', '@2'... placeholder parameters. AtMark )
These variables are the same as defined variables at sqb.go.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
type Builder struct {
Placeholder int
// contains filtered or unexported fields
}
Builder is the interface that wraps the basic Reset, Cap and WriteString method.
func (*Builder) AppendArgs ¶
func (b *Builder) AppendArgs(args ...interface{})
AppendArgs appends the args.
func (*Builder) WritePlaceholder ¶ added in v0.0.2
func (b *Builder) WritePlaceholder()
WritePlaceholder writes placeholder.
func (*Builder) WriteString ¶
WriteString appends the contents of s to Buffer. Builder.buf.WriteString doesn't have the potential to return an error. But have the potential to panic.
strings.Builder https://golang.org/src/strings/builder.go?s=3425:3477#L110
bytes.Buffer https://golang.org/pkg/bytes/#Buffer.WriteString
Click to show internal directories.
Click to hide internal directories.