Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Case (1.12 sec)

  1. src/cmd/vendor/github.com/google/pprof/internal/driver/config.go

    }
    
    // get returns the value of field f in cfg.
    func (cfg *config) get(f configField) string {
    	switch ptr := cfg.fieldPtr(f).(type) {
    	case *string:
    		return *ptr
    	case *int:
    		return fmt.Sprint(*ptr)
    	case *float64:
    		return fmt.Sprint(*ptr)
    	case *bool:
    		return fmt.Sprint(*ptr)
    	}
    	panic(fmt.Sprintf("unsupported config field type %v", f.field.Type))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/config.go

    	default:
    		return fmt.Errorf("invalid linkmode: %q", s)
    	case "auto":
    		*mode = LinkAuto
    	case "internal":
    		*mode = LinkInternal
    	case "external":
    		*mode = LinkExternal
    	}
    	return nil
    }
    
    func (mode *LinkMode) String() string {
    	switch *mode {
    	case LinkAuto:
    		return "auto"
    	case LinkInternal:
    		return "internal"
    	case LinkExternal:
    		return "external"
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 05:14:11 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/config.go

    	return c
    }
    
    func (c *Config) Ctxt() *obj.Link { return c.ctxt }
    
    func (c *Config) haveByteSwap(size int64) bool {
    	switch size {
    	case 8:
    		return c.haveBswap64
    	case 4:
    		return c.haveBswap32
    	case 2:
    		return c.haveBswap16
    	default:
    		base.Fatalf("bad size %d\n", size)
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 12.9K bytes
    - Viewed (0)
Back to top