- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 56 for Embed0 (0.12 sec)
-
src/embed/embed.go
// //go:embed image template html/index.html // var content embed.FS // // The difference is that ‘image/*’ embeds ‘image/.tempfile’ while ‘image’ does not. // Neither embeds ‘image/dir/.tempfile’. // // If a pattern begins with the prefix ‘all:’, then the rule for walking directories is changed // to include those files beginning with ‘.’ or ‘_’. For example, ‘all:image’ embeds // both ‘image/.tempfile’ and ‘image/dir/.tempfile’. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 19:42:51 UTC 2024 - 13.5K bytes - Viewed (0) -
src/cmd/compile/internal/noder/noder.go
for _, pos := range pragma.Pos { if pos.Flag&pragma.Flag != 0 { p.error(syntax.Error{Pos: pos.Pos, Msg: "misplaced compiler directive"}) } } if len(pragma.Embeds) > 0 { for _, e := range pragma.Embeds { p.error(syntax.Error{Pos: e.Pos, Msg: "misplaced go:embed directive"}) } } if pragma.WasmImport != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 11 20:40:57 UTC 2023 - 12.5K bytes - Viewed (0) -
src/go/build/read.go
// and we can pretend they are not there to help go list succeed with what it knows. embs, err := parseGoEmbed(string(line), pos) if err == nil { info.embeds = append(info.embeds, embs...) } } } return nil } // isValidImport checks if the import is a valid import using the more strict
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 14.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/dump/dump_test.go
{map[string]embed{"key": teb}, "(map[string]dump.embed) (len=1) {\n (string) (len=3) \"key\": (dump.embed) {\n s: (string) (len=4) \"test\"\n }\n}\n"}, {map[string]embedwrap{"key": tebw}, "(map[string]dump.embedwrap) (len=1) {\n (string) (len=3) \"key\": (dump.embedwrap) {\n embed: (dump.embed) {\n s: (string) (len=4) \"test\"\n },\n e: (*dump.embed)({\n s: (string) (len=4) \"test\"\n })\n }\n}\n"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 27 01:24:22 UTC 2023 - 10.3K bytes - Viewed (0) -
src/cmd/go/internal/modindex/read.go
} sf.savedImports = ret }) return sf.savedImports } func (sf *sourceFile) embeds() []embed { embedsOffset := sf.embedsOffset() r := sf.d.readAt(embedsOffset) numEmbeds := r.int() ret := make([]embed, numEmbeds) for i := range ret { ret[i] = embed{r.string(), r.tokpos()} } return ret } func (sf *sourceFile) directives() []build.Directive {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 29.7K bytes - Viewed (0) -
src/cmd/fix/typecheck.go
// If the field or method cannot be found there, it is next // looked for in the Embed list. type Type struct { Field map[string]string // map field name to type Method map[string]string // map method name to comma-separated return types (should start with "func ") Embed []string // list of types this type embeds (for extra methods) Def string // definition of named type }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 16 22:02:42 UTC 2022 - 20.1K bytes - Viewed (0) -
src/go/internal/gcimporter/ureader.go
} embeds := make([]types.Type, iface.NumEmbeddeds()) for i := range embeds { embeds[i] = iface.EmbeddedType(i) } newIface := types.NewInterfaceType(methods, embeds) r.p.ifaces = append(r.p.ifaces, newIface) underlying = newIface } named.SetUnderlying(underlying)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 16.6K bytes - Viewed (0) -
docs/ru/docs/tutorial/body-multiple-params.md
Но если вы хотите чтобы он ожидал JSON с ключом `item` с содержимым модели внутри, также как это происходит при объявлении дополнительных body-параметров, вы можете использовать специальный параметр `embed` у типа `Body`: ```Python item: Item = Body(embed=True) ``` так же, как в этом примере: === "Python 3.10+" ```Python hl_lines="17" {!> ../../../docs_src/body_multiple_params/tutorial005_an_py310.py!} ```
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 11.7K bytes - Viewed (0) -
fastapi/params.py
deprecated: Union[deprecated, str, bool, None] = None, include_in_schema: bool = True, json_schema_extra: Union[Dict[str, Any], None] = None, **extra: Any, ): self.embed = embed self.media_type = media_type if example is not _Unset: warnings.warn( "`example` has been deprecated, please use `examples` instead",
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 27.5K bytes - Viewed (0) -
src/net/rpc/server_test.go
time.Sleep(time.Duration(args.A) * time.Millisecond) return nil } type hidden int func (t *hidden) Exported(args Args, reply *Reply) error { reply.C = args.A + args.B return nil } type Embed struct { hidden } type BuiltinTypes struct{} func (BuiltinTypes) Map(args *Args, reply *map[int]int) error { (*reply)[args.A] = args.B return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 18 05:23:29 UTC 2023 - 19K bytes - Viewed (0)