Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for argNum (0.13 sec)

  1. src/fmt/errors.go

    		w.err, _ = a[p.wrappedErrs[0]].(error)
    		err = w
    	default:
    		if p.reordered {
    			slices.Sort(p.wrappedErrs)
    		}
    		var errs []error
    		for i, argNum := range p.wrappedErrs {
    			if i > 0 && p.wrappedErrs[i-1] == argNum {
    				continue
    			}
    			if e, ok := a[argNum].(error); ok {
    				errs = append(errs, e)
    			}
    		}
    		err = &wrapErrors{s, errs}
    	}
    	p.free()
    	return err
    }
    
    type wrapError struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. internal/grid/grid_types_msgp_test.go

    		zb0001--
    		field, err = dc.ReadMapKeyPtr()
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		switch msgp.UnsafeString(field) {
    		case "OrgNum":
    			z.OrgNum, err = dc.ReadInt()
    			if err != nil {
    				err = msgp.WrapError(err, "OrgNum")
    				return
    			}
    		case "OrgString":
    			z.OrgString, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "OrgString")
    				return
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  3. test/fixedbugs/issue16760.go

    // arguments until those arguments are evaluated and known
    // not to unconditionally panic. If they unconditionally panic,
    // we write some args but never do the call. That messes up
    // the logic which decides how big the argout section needs to be.
    
    package main
    
    type W interface {
    	Write([]byte)
    }
    
    type F func(W)
    
    func foo(f F) {
    	defer func() {
    		if r := recover(); r != nil {
    			usestack(1000)
    		}
    	}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 22 22:53:51 UTC 2021
    - 796 bytes
    - Viewed (0)
  4. docs/pt/docs/history-design-future.md

    # História, Design e Futuro
    
    Há algum tempo, <a href="https://github.com/tiangolo/fastapi/issues/3#issuecomment-454956920" class="external-link" target="_blank">um usuário **FastAPI** perguntou</a>:
    
    > Qual é a história desse projeto? Parece que surgiu do nada e se tornou incrível em poucas semanas [...]
    
    Aqui está um pouco dessa história.
    
    ## Alternativas
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. internal/grid/grid_types_test.go

    package grid
    
    //go:generate msgp -unexported -file=$GOFILE -tests=false -o=grid_types_msgp_test.go
    
    type testRequest struct {
    	Num    int
    	String string
    }
    
    type testResponse struct {
    	OrgNum    int
    	OrgString string
    	Embedded  testRequest
    }
    
    func newTestRequest() *testRequest {
    	return &testRequest{}
    }
    
    func newTestResponse() *testResponse {
    	return &testResponse{}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/security/first-steps.md

    # Segurança - Primeiros Passos
    
    Vamos imaginar que você tem a sua API **backend** em algum domínio.
    
    E você tem um **frontend** em outro domínio ou em um path diferente no mesmo domínio (ou em uma aplicação mobile).
    
    E você quer uma maneira de o frontend autenticar o backend, usando um **username** e **senha**.
    
    Nós podemos usar o **OAuth2** junto com o **FastAPI**.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  7. docs/pt/docs/deployment/versions.md

    Já é possível criar aplicativos de produção com **FastAPI** (e provavelmente você já faz isso há algum tempo), apenas precisando ter certeza de usar uma versão que funcione corretamente com o resto do seu código.
    
    ## Fixe a sua versão de `fastapi`
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Jul 29 20:14:40 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/header-params.md

    Portanto, você pode usar `user_agent` como faria normalmente no código Python, em vez de precisar colocar as primeiras letras em maiúsculas como `User_Agent` ou algo semelhante.
    
    Se por algum motivo você precisar desabilitar a conversão automática de sublinhados para hífens, defina o parâmetro `convert_underscores` de `Header` para `False`:
    
    === "Python 3.10+"
    
        ```Python hl_lines="8"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 17 05:59:11 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  9. src/runtime/race/testdata/select_test.go

    			y = 1
    		}
    		done <- true
    	}()
    	_ = x
    	_ = y
    	<-done
    }
    
    // select statements may introduce
    // flakiness: whether this test contains
    // a race depends on the scheduling
    // (some may argue that the code contains
    // this race by definition)
    /*
    func TestFlakyDefault(t *testing.T) {
    	var x int
    	c := make(chan bool, 1)
    	done := make(chan bool, 1)
    	go func() {
    		select {
    		case <-c:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 05:25:54 UTC 2020
    - 4.1K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/internal/classpath/ClasspathWalker.java

                return Files.readAllBytes(file.toPath());
            }
    
            @Override
            public CompressionMethod getCompressionMethod() {
                // One could argue that files have STORED as the compression method, as they obviously aren't compressed.
                // However, this property is mostly an accident of the way this classpath entry was produced.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top