Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 198 for Hi (0.06 sec)

  1. src/net/http/httptest/recorder_test.go

    				w.WriteHeader(201)
    				w.WriteHeader(202)
    				w.Write([]byte("hi"))
    			},
    			check(hasStatus(201), hasContents("hi")),
    		},
    		{
    			"write sends 200",
    			func(w http.ResponseWriter, r *http.Request) {
    				w.Write([]byte("hi first"))
    				w.WriteHeader(201)
    				w.WriteHeader(202)
    			},
    			check(hasStatus(200), hasContents("hi first"), hasFlush(false)),
    		},
    		{
    			"write string",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 23:17:38 UTC 2022
    - 9.7K bytes
    - Viewed (0)
  2. src/runtime/mpagealloc_32bit.go

    		// at this level because the full block is needed to compute the summary for
    		// the next level.
    		lo, hi := addrsToSummaryRange(l, base, limit)
    		_, hi = blockAlignSummaryRange(l, lo, hi)
    		if hi > len(p.summary[l]) {
    			p.summary[l] = p.summary[l][:hi]
    		}
    	}
    }
    
    // sysInit initializes the scavengeIndex' chunks array.
    //
    // Returns the amount of memory added to sysStat.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 20 20:08:25 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  3. src/internal/godebugs/table.go

    }
    
    // Lookup returns the Info with the given name.
    func Lookup(name string) *Info {
    	// binary search, avoiding import of sort.
    	lo := 0
    	hi := len(All)
    	for lo < hi {
    		m := int(uint(lo+hi) >> 1)
    		mid := All[m].Name
    		if name == mid {
    			return &All[m]
    		}
    		if name < mid {
    			hi = m
    		} else {
    			lo = m + 1
    		}
    	}
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:58:43 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. test/fixedbugs/issue26335.go

    )
    
    type Empty struct {
    	f1, f2 *byte
    	empty struct{}
    }
    
    func F(e Empty, s []string) {
    	if len(s) != 1 || s[0] != "hi" {
    		panic("bad slice")
    	}
    }
    
    func main() {
    	reflect.ValueOf(F).Call([]reflect.Value{
    		reflect.ValueOf(Empty{}),
    		reflect.ValueOf([]string{"hi"}),
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 11 18:14:35 UTC 2018
    - 563 bytes
    - Viewed (0)
  5. test/fixedbugs/issue63490.go

    	println(s)
    	return ResourceFunc{}
    }
    
    //go:noinline
    func (r SubscriptionAssignmentResource) Hi() ResourceFunc {
    	rf := r.base.f("Hello world")
    	rf.base = r.base
    	return rf
    }
    
    func main() {
    	var r SubscriptionAssignmentResource
    	r.Hi()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:50:46 UTC 2023
    - 683 bytes
    - Viewed (0)
  6. src/math/expm1.go

    		var hi, lo float64
    		if absx < Ln2HalfX3 { // and |x| < 1.5 * ln2
    			if !sign {
    				hi = x - Ln2Hi
    				lo = Ln2Lo
    				k = 1
    			} else {
    				hi = x + Ln2Hi
    				lo = -Ln2Lo
    				k = -1
    			}
    		} else {
    			if !sign {
    				k = int(InvLn2*x + 0.5)
    			} else {
    				k = int(InvLn2*x - 0.5)
    			}
    			t := float64(k)
    			hi = x - t*Ln2Hi // t * Ln2Hi is exact here
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  7. test/fixedbugs/bug205.go

    // license that can be found in the LICENSE file.
    
    package main
    
    var t []int
    var s string;
    var m map[string]int;
    
    func main() {
    	println(t["hi"]); // ERROR "non-integer slice index|must be integer|cannot convert"
    	println(s["hi"]); // ERROR "non-integer string index|must be integer|cannot convert"
    	println(m[0]);    // ERROR "cannot use.*as type string|cannot convert|cannot use"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 23 05:11:09 UTC 2021
    - 509 bytes
    - Viewed (0)
  8. src/runtime/pprof/proto_darwin.go

    		b.addMappingEntry(0, 0, 0, "", "", true)
    	}
    }
    
    func readMainModuleMapping() (start, end uint64, exe, buildID string, err error) {
    	first := true
    	ok := machVMInfo(func(lo, hi, off uint64, file, build string) {
    		if first {
    			start, end = lo, hi
    			exe, buildID = file, build
    		}
    		// May see multiple text segments if rosetta is used for running
    		// the go toolchain itself.
    		first = false
    	})
    	if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:59 UTC 2023
    - 1K bytes
    - Viewed (0)
  9. src/crypto/internal/edwards25519/field/fe_generic.go

    type uint128 struct {
    	lo, hi uint64
    }
    
    // mul64 returns a * b.
    func mul64(a, b uint64) uint128 {
    	hi, lo := bits.Mul64(a, b)
    	return uint128{lo, hi}
    }
    
    // addMul64 returns v + a * b.
    func addMul64(v uint128, a, b uint64) uint128 {
    	hi, lo := bits.Mul64(a, b)
    	lo, c := bits.Add64(lo, v.lo, 0)
    	hi, _ = bits.Add64(hi, v.hi, c)
    	return uint128{lo, hi}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 01:16:19 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  10. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SwiftMainWithOptionalFeature.groovy

            this.greeter = greeter
        }
    
        @Override
        SourceFile getSourceFile() {
            sourceFile("swift", "main.swift", """
                func main() -> Int {
            #if WITH_FEATURE
                  print("hi from main")
            #endif
                  let greeter = Greeter()
                  greeter.sayHello()
                  return 0
                }
    
                _ = main()
            """)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top