- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 49 for importRaw (0.37 sec)
-
src/cmd/go/internal/modindex/index_test.go
path := filepath.Join("testdata", "ignore_non_source") p := importRaw(path, ".") wantFiles := []string{"a.syso", "b.go", "c.c"} var gotFiles []string for i := range p.sourceFiles { gotFiles = append(gotFiles, p.sourceFiles[i].name) } if !reflect.DeepEqual(gotFiles, wantFiles) { t.Errorf("names of files in importRaw(testdata/ignore_non_source): got %v; want %v", gotFiles, wantFiles) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 28 23:35:08 UTC 2022 - 2.3K bytes - Viewed (0) -
src/cmd/go/internal/modindex/scan.go
path string position token.Position } type embed struct { pattern string position token.Position } // importRaw fills the rawPackage from the package files in srcDir. // dir is the package's path relative to the modroot. func importRaw(modroot, reldir string) *rawPackage { p := &rawPackage{ dir: reldir, } absdir := filepath.Join(modroot, reldir)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 8.5K bytes - Viewed (0) -
docs/es/docs/tutorial/cookie-params.md
# Parámetros de Cookie Puedes definir parámetros de Cookie de la misma manera que defines parámetros de `Query` y `Path`. ## Importar `Cookie` Primero importa `Cookie`: === "Python 3.10+" ```Python hl_lines="3" {!> ../../../docs_src/cookie_params/tutorial001_an_py310.py!} ``` === "Python 3.9+" ```Python hl_lines="3" {!> ../../../docs_src/cookie_params/tutorial001_an_py39.py!} ```
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Apr 19 19:30:26 UTC 2024 - 2.4K bytes - Viewed (0) -
docs/pt/docs/tutorial/path-params-numeric-validations.md
!!! note "Detalhes Técnicos" Quando você importa `Query`, `Path` e outras de `fastapi`, elas são na verdade funções. Que quando chamadas, retornam instâncias de classes de mesmo nome. Então, você importa `Query`, que é uma função. E quando você a chama, ela retorna uma instância de uma classe também chamada `Query`.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Oct 17 05:59:11 UTC 2023 - 5.6K bytes - Viewed (0) -
src/cmd/go/testdata/script/list_pgo_issue66218.txt
# add the [.ForMain] suffix. go list -f 'ImportPath: "{{.ImportPath}}", Imports: "{{.Imports}}", ImportMap: "{{.ImportMap}}"' m/a m/b cmp stdout want -- want -- ImportPath: "m/a", Imports: "[m/b [m/a]]", ImportMap: "map[m/b:m/b [m/a]]" ImportPath: "m/b", Imports: "[m/c]", ImportMap: "map[]" -- go.mod -- module m go 1.23 -- a/a.go -- package main import _ "m/b" -- a/default.pgo --
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 28 17:00:51 UTC 2024 - 615 bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/export.go
func importfunc(s *types.Sym, t *types.Type) { fn := ir.NewFunc(src.NoXPos, src.NoXPos, s, t) importsym(fn.Nname) } // importvar declares symbol s as an imported variable with type t. func importvar(s *types.Sym, t *types.Type) { n := ir.NewNameAt(src.NoXPos, s, t) n.Class = ir.PEXTERN importsym(n) } func importsym(name *ir.Name) { sym := name.Sym()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 17 19:36:28 UTC 2023 - 838 bytes - Viewed (0) -
src/cmd/go/testdata/script/list_cgo_compiled_importmap.txt
# Because the import of "runtime/cgo" in the cgo-generated file actually refers # to "runtime/cgo [runtime.test]", the latter should be listed in the ImportMap. # BUG(#46462): Today, it is not. go list -deps -test -compiled -f '{{if eq .ImportPath "net [runtime.test]"}}{{printf "%q" .ImportMap}}{{end}}' runtime stdout '"sync":"sync \[runtime\.test\]"' # control
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 27 22:26:09 UTC 2023 - 1.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/facts/imports.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package facts import ( "go/types" "golang.org/x/tools/internal/aliases" ) // importMap computes the import map for a package by traversing the // entire exported API each of its imports. // // This is a workaround for the fact that we cannot access the map used
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 3.5K bytes - Viewed (0) -
src/cmd/go/testdata/script/list_importmap.txt
go list -f '{{.ImportPath}}: {{.ImportMap}}' fmt a/b stdout 'fmt: map\[\]' stdout 'a/b: map\[c/d:a/vendor/c/d\]' # flag [fmt.test] should import fmt [fmt.test] as fmt # fmt.test should import testing [fmt.test] as testing # fmt.test should not import a modified os go list -deps -test -f '{{.ImportPath}} MAP: {{.ImportMap}}{{"\n"}}{{.ImportPath}} IMPORT: {{.Imports}}' fmt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 956 bytes - Viewed (0) -
docs/pt/docs/tutorial/body-fields.md
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jul 02 15:00:11 UTC 2021 - 2.2K bytes - Viewed (0)