Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for intFromArg (0.17 sec)

  1. src/fmt/print.go

    		}
    		fallthrough
    	case reflect.Chan, reflect.Func, reflect.UnsafePointer:
    		p.fmtPointer(f, verb)
    	default:
    		p.unknownType(f)
    	}
    }
    
    // intFromArg gets the argNumth element of a. On return, isInt reports whether the argument has integer type.
    func intFromArg(a []any, argNum int) (num int, isInt bool, newArgNum int) {
    	newArgNum = argNum
    	if argNum < len(a) {
    		num, isInt = a[argNum].(int) // Almost always OK.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:22:43 UTC 2024
    - 31.8K bytes
    - Viewed (0)
Back to top