Skip to content

Commit b261499

Browse files
committed
Add Embedded type example
1 parent 6dc06a9 commit b261499

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/main.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ func (e embedderExample) RawValue() string {
118118
return strings.Join(parts, ".")
119119
}
120120

121+
func embedded() {
122+
println("===[ Embedded ]===")
123+
q := bqb.New("embedded: ?, unembedded: ?", bqb.Embedded("raw"), "bound")
124+
q.Print()
125+
}
126+
121127
func embedder() {
122128
println("===[ Embedder ]===")
123129
emb := embedderExample{"one", "two", `"three"`}
@@ -132,5 +138,6 @@ func main() {
132138
json()
133139
nilQuery()
134140
valuer()
141+
embedded()
135142
embedder()
136143
}

0 commit comments

Comments
 (0)