func newScanner(tag reflect.StructTag) *scanner.Scanner {
	for _, key := range []string{"sqlstmt", "sql"} {
		str := strings.TrimSpace(tag.Get(key))
		if str != "" {
			scan := scanner.New(strings.NewReader(str))
			scan.IgnoreWhiteSpace = true
			scan.AddKeywords(
				"pk",
				"primary_key",
				"primary",
				"autoincrement",
				"autoincr",
				"auto",
				"identity",
				"version")
			return scan
		}
	}
	return nil
}
// newScanner returns a scanner for reading the contents of the struct tag.
// Returns nil if there is no appropriate struct tag to read.
newScanner returns a scanner for reading the contents of the struct tag.
Returns nil if there is no appropriate struct tag to read.
// newScanner returns a scanner for reading the contents of the struct tag . // Returns nil if there is no appropriate struct tag to read .
func newScanner(tag reflect.StructTag) *scanner.Scanner {
	for _, key := range []string{"sqlstmt", "sql"} {
		str := strings.TrimSpace(tag.Get(key))
		if str != "" {
			scan := scanner.New(strings.NewReader(str))
			scan.IgnoreWhiteSpace = true
			scan.AddKeywords(
				"pk",
				"primary_key",
				"primary",
				"autoincrement",
				"autoincr",
				"auto",
				"identity",
				"version")
			return scan
		}
	}
	return nil
}
func newScanner ( tag reflect . StructTag ) * scanner . Scanner { for _ , key := range [ ] string { " " , " " } { str := strings . TrimSpace ( tag . Get ( key ) ) if str != " " { scan := scanner . New ( strings . NewReader ( str ) ) scan . IgnoreWhiteSpace = true scan . AddKeywords ( " " , " " , " " , " " , " " , " " , " " , " " ) return scan } } return nil }
newScanner returns a scanner for reading the contents of the struct tag.
newScanner returns a scanner for reading the contents of the struct tag .