Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 570 for index (0.12 sec)

  1. test/fixedbugs/issue31252.dir/c.go

    import (
    	"./a"
    	"./b"
    )
    
    type HandlerFunc func(*string)
    
    func RouterInit() {
    	//home API
    	homeIndex := &a.IndexController{}
    	GET("/home/index/index", homeIndex.Index)
    	//admin API
    	adminIndex := &b.IndexController{}
    	GET("/admin/index/index", adminIndex.Index)
    	return
    }
    
    func GET(path string, handlers ...HandlerFunc) {
    	return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 503 bytes
    - Viewed (0)
  2. test/fixedbugs/issue15002.go

    		if r == nil {
    			panic("no fault or bounds check failure happened")
    		}
    		s := fmt.Sprintf("%s", r)
    		if s != "runtime error: index out of range [1] with length 1" {
    			panic("bad panic: " + s)
    		}
    	}()
    	// Try to read 2 bytes from x.
    	return uint16(x[0]) | uint16(x[1])<<8
    
    	// We expect to get an "index out of range" error from x[1].
    	// If we promote the first load to a 2-byte load, it will segfault, which we don't want.
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  3. cmd/peer-s3-server.go

    	// Make a volume entry on all underlying storage disks.
    	for index := range localDrives {
    		index := index
    		g.Go(func() (serr error) {
    			if localDrives[index] == nil {
    				beforeState[index] = madmin.DriveStateOffline
    				afterState[index] = madmin.DriveStateOffline
    				return errDiskNotFound
    			}
    
    			beforeState[index] = madmin.DriveStateOk
    			afterState[index] = madmin.DriveStateOk
    
    			if bucket == minioReservedBucket {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. src/internal/pkgbits/reloc.go

    type RelocKind int32
    
    // An Index represents a bitstream element index within a particular
    // section.
    type Index int32
    
    // A relocEnt (relocation entry) is an entry in an element's local
    // reference table.
    //
    // TODO(mdempsky): Rename this too.
    type RelocEnt struct {
    	Kind RelocKind
    	Idx  Index
    }
    
    // Reserved indices within the meta relocation section.
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 10 22:22:48 UTC 2022
    - 835 bytes
    - Viewed (0)
  5. pkg/test/loadbalancersim/timer/queue.go

    }
    
    func (h timerHeap) Swap(i, j int) {
    	h[i], h[j] = h[j], h[i]
    	h[i].index = i
    	h[j].index = j
    }
    
    func (h *timerHeap) Push(x any) {
    	e := x.(*entry)
    	*h = append(*h, e)
    	e.index = len(*h) - 1
    }
    
    func (h *timerHeap) Pop() any {
    	n := h.Len()
    	e := (*h)[n-1]
    	*h = (*h)[:n-1]
    	e.index = -1
    	return e
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 20 19:13:32 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  6. src/net/interface_aix.go

    		if ifm.Msglen == 0 {
    			break
    		}
    		if ifm.Type == syscall.RTM_IFINFO {
    			if ifindex == 0 || ifindex == int(ifm.Index) {
    				sdl := (*rawSockaddrDatalink)(unsafe.Pointer(&tab[syscall.SizeofIfMsghdr]))
    
    				ifi := &Interface{Index: int(ifm.Index), Flags: linkFlags(ifm.Flags)}
    				ifi.Name = string(sdl.Data[:sdl.Nlen])
    				ifi.HardwareAddr = sdl.Data[sdl.Nlen : sdl.Nlen+sdl.Alen]
    
    				// Retrieve MTU
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 27 05:42:03 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  7. test/fixedbugs/issue54722b.go

    // license that can be found in the LICENSE file.
    
    package p
    
    type value[V comparable] struct {
    	node  *node[value[V]]
    	value V
    }
    
    type node[V comparable] struct {
    	index    *index[V]
    	children map[string]*node[V]
    }
    
    type index[V comparable] struct {
    	arrays []array[V]
    }
    
    type array[V comparable] struct {
    	valueMap map[int]V
    }
    
    var x value[int]
    var y value[*Column]
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 30 17:23:27 UTC 2022
    - 523 bytes
    - Viewed (0)
  8. pkg/config/analysis/analyzers/envoyfilter/envoyfilter.go

    		}
    
    		if line, ok := util.ErrorLine(r, fmt.Sprintf(util.EnvoyFilterConfigPath, index)); ok {
    			message.Line = line
    		}
    		c.Report(gvk.EnvoyFilter, message)
    
    	}
    }
    
    func (*EnvoyPatchAnalyzer) analyzeEnvoyFilterPatch(r *resource.Instance, c analysis.Context, patchFilterNames []string) []string {
    	ef := r.Message.(*network.EnvoyFilter)
    	for index, patch := range ef.ConfigPatches {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 08 16:43:05 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  9. src/net/interface_windows.go

    	if err != nil {
    		return nil, err
    	}
    	var ift []Interface
    	for _, aa := range aas {
    		index := aa.IfIndex
    		if index == 0 { // ipv6IfIndex is a substitute for ifIndex
    			index = aa.Ipv6IfIndex
    		}
    		if ifindex == 0 || ifindex == int(index) {
    			ifi := Interface{
    				Index: int(index),
    				Name:  windows.UTF16PtrToString(aa.FriendlyName),
    			}
    			if aa.OperStatus == windows.IfOperStatusUp {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 10:25:02 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. test/typeparam/issue47892.dir/main.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import "./a"
    
    type Model[T any] struct {
    	index a.Index[T]
    }
    
    func NewModel[T any](index a.Index[T]) Model[T] {
    	return Model[T]{
    		index: index,
    	}
    }
    
    func main() {
    	_ = NewModel[int]((*a.I1[int])(nil))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 380 bytes
    - Viewed (0)
Back to top