Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 267 for raws (0.2 sec)

  1. src/cmd/go/internal/modindex/index_test.go

    	pkgs := []string{
    		"crypto",
    		"encoding",
    		"unsafe",
    		"encoding/json",
    		"runtime",
    		"net",
    	}
    	var raws []*rawPackage
    	for _, pkg := range pkgs {
    		raw := importRaw(src, pkg)
    		raws = append(raws, raw)
    		t.Run(pkg, func(t *testing.T) {
    			data := encodeModuleBytes([]*rawPackage{raw})
    			m, err := fromBytes(src, data)
    			if err != nil {
    				t.Fatal(err)
    			}
    			checkPkg(t, m, pkg, data)
    		})
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 28 23:35:08 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  2. callbacks/raw.go

    heige <******@****.***> 1638149600 +0800
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Nov 29 01:33:20 UTC 2021
    - 336 bytes
    - Viewed (0)
  3. pkg/bootstrap/platform/aws.go

    	}
    
    	resp, err := http.PUT(url, time.Millisecond*100, map[string]string{
    		// more details can be found at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html
    		"X-aws-ec2-metadata-token-ttl-seconds": "60",
    	})
    	if err != nil {
    		log.Debugf("error in getting aws token : %v", err)
    		return ""
    	}
    	return resp.String()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 09 03:52:10 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. src/encoding/json/tagkey_test.go

    		{Name(""), punctuationTag{"Union Rags"}, "Union Rags", "!#$%&()*+-./:;<=>?@[]^_{|}~ "},
    		{Name(""), spaceTag{"Perreddu"}, "Perreddu", "With space"},
    		{Name(""), unicodeTag{"Loukanikos"}, "Loukanikos", "Ελλάδα"},
    	}
    	for _, tt := range tests {
    		t.Run(tt.Name, func(t *testing.T) {
    			b, err := Marshal(tt.raw)
    			if err != nil {
    				t.Fatalf("%s: Marshal error: %v", tt.Where, err)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 16:00:37 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  5. logger/logger.go

    		sql, rows := fc()
    		if rows == -1 {
    			l.Printf(l.traceErrStr, utils.FileWithLineNum(), err, float64(elapsed.Nanoseconds())/1e6, "-", sql)
    		} else {
    			l.Printf(l.traceErrStr, utils.FileWithLineNum(), err, float64(elapsed.Nanoseconds())/1e6, rows, sql)
    		}
    	case elapsed > l.SlowThreshold && l.SlowThreshold != 0 && l.LogLevel >= Warn:
    		sql, rows := fc()
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Nov 07 02:19:41 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  6. test/typeparam/issue47896.go

    type Repository[T any] struct {
    	db *sql.DB
    }
    
    func (r *Repository[T]) scan(rows *sql.Rows, m Mapper[*T], c Collection[*T]) error {
    	for rows.Next() {
    		t := new(T)
    		if err := m(rows, t); err != nil {
    			return err
    		}
    		c.Add(t)
    	}
    	return rows.Err()
    }
    
    func (r *Repository[T]) query(query string, m Mapper[*T], c Collection[*T]) error {
    	rows, err := r.db.Query(query)
    	if err != nil {
    		return err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  7. src/cmd/vendor/rsc.io/markdown/table.go

    	pos.StartLine-- // builder does not count header
    	pos.EndLine = pos.StartLine + 1 + len(b.rows)
    	t := &Table{
    		Position: pos,
    	}
    	width := tableCount(b.hdr)
    	t.Header = b.parseRow(p, b.hdr, pos.StartLine, width)
    	t.Align = b.parseAlign(b.delim, width)
    	t.Rows = make([][]*Text, len(b.rows))
    	for i, row := range b.rows {
    		t.Rows[i] = b.parseRow(p, row, pos.StartLine+2+i, width)
    	}
    	return t
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/CursorTest.groovy

            where:
            row << ROWS
            col << COLS
        }
    
        def "move cursor to (0,0) when calling bottomLeft"() {
            given:
            Cursor cursor = Cursor.at(row, col)
    
            when:
            cursor.bottomLeft()
    
            then:
            cursor.row == 0
            cursor.col == 0
    
            where:
            row << ROWS
            col << COLS
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  9. prepare_stmt.go

    	stmt, err := db.prepare(ctx, db.ConnPool, false, query)
    	if err == nil {
    		rows, err = stmt.QueryContext(ctx, args...)
    		if errors.Is(err, driver.ErrBadConn) {
    			db.Mux.Lock()
    			defer db.Mux.Unlock()
    
    			go stmt.Close()
    			delete(db.Stmts, query)
    		}
    	}
    	return rows, err
    }
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Mar 28 08:47:39 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. callbacks/row.go

    import (
    	"gorm.io/gorm"
    )
    
    func RowQuery(db *gorm.DB) {
    	if db.Error == nil {
    		BuildQuerySQL(db)
    		if db.DryRun || db.Error != nil {
    			return
    		}
    
    		if isRows, ok := db.Get("rows"); ok && isRows.(bool) {
    			db.Statement.Settings.Delete("rows")
    			db.Statement.Dest, db.Error = db.Statement.ConnPool.QueryContext(db.Statement.Context, db.Statement.SQL.String(), db.Statement.Vars...)
    		} else {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Feb 08 05:40:41 UTC 2023
    - 581 bytes
    - Viewed (0)
Back to top