GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — sqlb/bind at main · ubgo/sqlb

Expand file tree

/

bind

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

bind

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
README.md
README.md
 
 
bind.go
bind.go
 
 
bind_test.go
bind_test.go
 
 

README.md

Outline

bind — results through caller pointers

The shorter of the two result strategies. Bind(col, &dst) captures a pointer, and the select list and the scan targets come from one slice so they cannot drift apart.

Binding is an interface owned by stmt, and must stay one. The statement layer knows only that an item renders and carries an opaque target; it must never learn that the target is a pointer. That is what lets bind be its own package, and what keeps a third result strategy someone else's package rather than a fork — contrib/structbind is the proof, since a reflection-driven binder cannot use Bind at all.

Full documentation

The page for this package is docs/bind/README.md, with runnable snippets — every one of them copied from a test whose expected output go test checks. The documentation index is ../docs/README.md and the repository README is ../README.md.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.