\"))\n}","func (*XMLDocument) Body() (body window.HTMLElement) {\n\tmacro.Rewrite(\"$_.body\")\n\treturn body\n}","func pagemain(w http.ResponseWriter, r *http.Request){\n w.Write([]byte( `\n \n
\n
\n \n `))\n }","func readBody(win *acme.Win) ([]byte, error) {\n\tvar body []byte\n\tbuf := make([]byte, 8000)\n\tfor {\n\t\tn, err := win.Read(\"body\", buf)\n\t\tif err == io.EOF {\n\t\t\tbreak\n\t\t}\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tbody = append(body, buf[0:n]...)\n\t}\n\treturn body, nil\n}","func streamcode_bodyscripts(qw422016 *qt422016.Writer, lang string) {\n//line template/code.qtpl:16\n\tqw422016.N().S(`\n `)\n//line template/code.qtpl:17\n\tqw422016.N().S(``)\n//line template/code.qtpl:19\n\tif lang != \"\" && lang != \"none\" {\n//line template/code.qtpl:19\n\t\tqw422016.N().S(``)\n//line template/code.qtpl:21\n\t}\n//line template/code.qtpl:22\n\tqw422016.N().S(`\n`)\n//line template/code.qtpl:23\n}","func (dao *blockDAO) Body(h hash.Hash256) (*block.Body, error) {\n\treturn dao.body(h)\n}","func (p Page) Body() []byte {\n\treturn p.body\n}","func Body_(children ...HTML) HTML {\n return Body(nil, children...)\n}","func (f *Function) Body() string {\n\treturn extractSrc(f.file.src, f.fn.Body)\n}","func scheduleBody(e *executor, j *jobInfo) func() {\n\treturn func() {\n\t\tlog.Println(j.c.Name, \"woke up\")\n\t\tinfo := &runInfo{\n\t\t\te: e,\n\t\t\tj: j,\n\t\t}\n\t\te.run(info)\n\t\tlog.Println(j.c.Name, \"finished in\", time.Now().Sub(info.start))\n\t}\n}","func (s *BasecluListener) EnterBody(ctx *BodyContext) {}","func buildBody(level, title string) map[string]interface{} {\n\ttimestamp := time.Now().Unix()\n\thostname, _ := os.Hostname()\n\n\treturn map[string]interface{}{\n\t\t\"access_token\": Token,\n\t\t\"data\": map[string]interface{}{\n\t\t\t\"environment\": Environment,\n\t\t\t\"title\": title,\n\t\t\t\"level\": level,\n\t\t\t\"timestamp\": timestamp,\n\t\t\t\"platform\": runtime.GOOS,\n\t\t\t\"language\": \"go\",\n\t\t\t\"server\": map[string]interface{}{\n\t\t\t\t\"host\": hostname,\n\t\t\t},\n\t\t\t\"notifier\": map[string]interface{}{\n\t\t\t\t\"name\": NAME,\n\t\t\t\t\"version\": VERSION,\n\t\t\t},\n\t\t},\n\t}\n}","func (b *BitcoinClient) createBody(rpcBody *RPCBody) (*bytes.Buffer, error) {\n\tbodyJSON, err := json.Marshal(rpcBody)\n\tif err != nil {\n\t\tlog.Println(ErrCreatingBody)\n\t\treturn nil, ErrCreatingBody\n\t}\n\n\treturn bytes.NewBuffer(bodyJSON), nil\n}","func (e *TestMilter) Body(m *milter.Modifier) (milter.Response, error) {\n\t// prepare buffer\n\t_ = bytes.NewReader(e.message.Bytes())\n\tfmt.Println(\"size of body: \", e.message.Len())\n\tm.AddHeader(\"name\", \"value\")\n\tm.AddRecipient(\"some.new.rcpt@example.com\")\n\tm.ChangeFrom(\"new.from@example.com\")\n\tm.ChangeHeader(0, \"Subject\", \"New Subject\")\n\tm.DeleteRecipient(\"to@example.com\")\n\tm.InsertHeader(0, \"new\", \"value\")\n\tm.ReplaceBody([]byte(\"new body\"))\n\n\t// accept message by default\n\treturn milter.RespAccept, nil\n}","func (ge *GollumEvent) Body() string {\n\treturn \"\"\n}","func getBody(rw http.ResponseWriter, r *http.Request, requestBody *structs.Request) (error, string) {\n\tbuf, _ := ioutil.ReadAll(r.Body)\n\trdr1 := ioutil.NopCloser(bytes.NewBuffer(buf))\n\trdr2 := ioutil.NopCloser(bytes.NewBuffer(buf))\n\n\t//Save the state back into the body for later use (Especially useful for getting the AOD/QOD because if the AOD has not been set a random AOD is set and the function called again)\n\tr.Body = rdr2\n\tif err := json.NewDecoder(rdr1).Decode(&requestBody); err != nil {\n\t\tlog.Printf(\"Got error when decoding: %s\", err)\n\t\terr = errors.New(\"request body is not structured correctly. Please refer to the /docs page for information on how to structure the request body\")\n\t\trw.WriteHeader(http.StatusBadRequest)\n\t\tjson.NewEncoder(rw).Encode(structs.ErrorResponse{Message: err.Error()})\n\t\treturn err, \"\"\n\t}\n\treturn nil, string(buf)\n}","func (t *TOMLParser) Body() []byte {\n\treturn t.body.Bytes()\n}","func RenderBody(body []byte, vars map[string]string) ([]byte, error) {\n\ttmpl, err := template.New(\"\").Funcs(sprig.TxtFuncMap()).Parse(string(body))\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tvar out bytes.Buffer\n\tif err := tmpl.Execute(&out, map[string]interface{}{\n\t\t\"Vars\": vars,\n\t}); err != nil {\n\t\treturn nil, err\n\t}\n\treturn out.Bytes(), nil\n}","func (_this *Report) Body() *ReportBody {\n\tvar ret *ReportBody\n\tvalue := _this.Value_JS.Get(\"body\")\n\tif value.Type() != js.TypeNull && value.Type() != js.TypeUndefined {\n\t\tret = ReportBodyFromJS(value)\n\t}\n\treturn ret\n}","func main() {\n\tlog.Println(\"Hello TPL!\")\n\n\t// Use the main.html template or die\n\ttpl, err := gtpl.Open(\"templates/main.html\")\n\tif err != nil {\n\t\tlog.Panic(err)\n\t}\n\n\t// Assign a global variable\n\ttpl.AssignGlobal(\"a_global_var\", \"Global Varaible Here\")\n\n\t// Parse out the \"top_body\" block.\n\ttpl.Parse(\"top_body\")\n\n\t// Assign a value to {foo}\n\ttpl.Assign(\"foo\", \"Something about foobar!\")\n\t// Parse \"some_row\" which is nested in \"content_body\"\n\ttpl.Parse(\"content_body.some_row\")\n\n\t// Assign a new value to {foo}\n\ttpl.Assign(\"foo\", \"Putting something else here...\")\n\t// Parse \"some_row\" which is nested in \"content_body\"\n\ttpl.Parse(\"content_body.some_row\")\n\n\t// Parse content_body\n\ttpl.Parse(\"content_body\")\n\n\t// Spit out the parsed page content\n\tlog.Println(\"Page Content is:\")\n\tfmt.Print(tpl.Out(), \"\\n\")\n}","func (s *Nap) Body(body io.Reader) *Nap {\n\tif body == nil {\n\t\treturn s\n\t}\n\treturn s.BodyProvider(bodyProvider{body: body})\n}","func (s *BasePlSqlParserListener) EnterBody(ctx *BodyContext) {}","func (self *Graphics) Body() interface{}{\n return self.Object.Get(\"body\")\n}","func (p *parser) parseBlockBody(term token.Type) tree.Block {\n\tblock := p.parseBlock()\n\tif p.tok != term {\n\t\tp.error(p.off, term.String()+\" expected\")\n\t}\n\treturn block\n}","func NewBody() *Body {\n\tb := new(Body)\n\tb.Element = NewElement(\"body\")\n\treturn b\n}","func (req MinRequest) Body(res tarantool.SchemaResolver, enc *msgpack.Encoder) error {\n\targs := minArgs{Space: req.space, Index: req.index, Opts: req.opts}\n\treq.impl = req.impl.Args(args)\n\treturn req.impl.Body(res, enc)\n}","func Body(resp *http.Response) (string, error) {\n\tdefer resp.Body.Close()\n\tb, e := ioutil.ReadAll(resp.Body)\n\treturn string(b), e\n}","func (i *BodyInterceptor) Body() []byte {\n\treturn i.BodyBytes\n}","func Body(t Term) Callable {\n\treturn t.(*Compound).Arguments()[1].(Callable)\n}","func (p *Post) Body() (buf []byte, err error) {\n if buf, err = ioutil.ReadFile(p.Path); err != nil {\n return\n }\n\n buf = buf[p.BodyIdx:]\n\n return\n}","func main() {\n\t// flag.Parse()\n\t// args := flag.Args()\n\t// if len(args) < 1 {\n\t// \tfmt.Println(\"Please specify start page\") // if a starting page wasn't provided as an argument\n\t// \tos.Exit(1) // show a message and exit.\n\t// }\n\t// getBody(args[0])\n\tgetBody(\"https://ng.indeed.com/jobs-in-Lagos\")\n}","func parsingbody(data, namecontrol string) (body string) {\n\tlistbody := strings.Split(data, \"var data request.\")\n\tgetvalue := strings.Split(listbody[1], \"\\n\")\n\tnamestructbody := getvalue[0]\n\tdir := config.GetDir()\n\tparsingstruct(dir+\"/vendor/request/\"+namecontrol+\".go\", namestructbody)\n\treturn\n}","func createBody(f *os.File, releaseTag, branch, docURL, exampleURL, releaseTars string) error {\n\tvar title string\n\tif *preview {\n\t\ttitle = \"Branch \"\n\t}\n\n\tif releaseTag == \"HEAD\" || releaseTag == branchHead {\n\t\ttitle += branch\n\t} else {\n\t\ttitle += releaseTag\n\t}\n\n\tif *preview {\n\t\tf.WriteString(fmt.Sprintf(\"**Release Note Preview - generated on %s**\\n\", time.Now().Format(\"Mon Jan 2 15:04:05 MST 2006\")))\n\t}\n\n\tf.WriteString(fmt.Sprintf(\"\\n# %s\\n\\n\", title))\n\tf.WriteString(fmt.Sprintf(\"[Documentation](%s) & [Examples](%s)\\n\\n\", docURL, exampleURL))\n\n\tif releaseTars != \"\" {\n\t\tf.WriteString(fmt.Sprintf(\"## Downloads for %s\\n\\n\", title))\n\t\ttables := []struct {\n\t\t\theading string\n\t\t\tfilename []string\n\t\t}{\n\t\t\t{\"\", []string{releaseTars + \"/kubernetes.tar.gz\", releaseTars + \"/kubernetes-src.tar.gz\"}},\n\t\t\t{\"Client Binaries\", []string{releaseTars + \"/kubernetes-client*.tar.gz\"}},\n\t\t\t{\"Server Binaries\", []string{releaseTars + \"/kubernetes-server*.tar.gz\"}},\n\t\t\t{\"Node Binaries\", []string{releaseTars + \"/kubernetes-node*.tar.gz\"}},\n\t\t}\n\n\t\tfor _, table := range tables {\n\t\t\terr := createDownloadsTable(f, releaseTag, table.heading, table.filename...)\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"failed to create downloads table: %v\", err)\n\t\t\t}\n\t\t}\n\t\tf.WriteString(\"\\n\")\n\t}\n\treturn nil\n}","func RenderAsBody(comp Component) {\n\tdoc := js.Global.Get(\"document\")\n\tbody := doc.Call(\"createElement\", \"body\")\n\tRender(comp, body)\n\tif doc.Get(\"readyState\").String() == \"loading\" {\n\t\tdoc.Call(\"addEventListener\", \"DOMContentLoaded\", func() { // avoid duplicate body\n\t\t\tdoc.Set(\"body\", body)\n\t\t})\n\t\treturn\n\t}\n\tdoc.Set(\"body\", body)\n}","func (r *Request) Body(body io.Reader) *Request {\n\tpanic(\"TODO\")\n\t//if rc, ok := r.(io.ReadCloser); ok {\n\t//r.body = r\n\treturn r\n}","func getBody(resp *http.Response) ([]byte, error) {\n\tbody, err := ioutil.ReadAll(resp.Body)\n\treturn body, err\n}","func (s *BasevhdlListener) EnterPackage_body(ctx *Package_bodyContext) {}","func (b *Block) Body() *Body {\n\treturn &Body{append(tx.Transactions(nil), b.txs...)}\n}","func (c *Control) Body(data interface{}) {\n\tvar content []byte\n\n\tif str, ok := data.(string); ok {\n\t\tcontent = []byte(str)\n\t\tif c.ContentType != \"\" {\n\t\t\tc.Writer.Header().Add(\"Content-type\", c.ContentType)\n\t\t} else {\n\t\t\tc.Writer.Header().Add(\"Content-type\", MIMETEXT)\n\t\t}\n\t} else {\n\t\tif c.useMetaData {\n\t\t\tc.header.Data = data\n\t\t\tif !c.timer.IsZero() {\n\t\t\t\ttook := time.Now()\n\t\t\t\tc.header.Duration = took.Sub(c.timer)\n\t\t\t\tc.header.Took = took.Sub(c.timer).String()\n\t\t\t}\n\t\t\tif c.header.Params == nil && len(c.params) > 0 {\n\t\t\t\tc.header.Params = c.params\n\t\t\t}\n\t\t\tif c.errorHeader.Code != 0 || c.errorHeader.Message != \"\" || len(c.errorHeader.Errors) > 0 {\n\t\t\t\tc.header.Error = c.errorHeader\n\t\t\t}\n\t\t\tdata = c.header\n\t\t}\n\t\tvar err error\n\t\tif c.compactJSON {\n\t\t\tcontent, err = json.Marshal(data)\n\t\t} else {\n\t\t\tcontent, err = json.MarshalIndent(data, \"\", \" \")\n\t\t}\n\t\tif err != nil {\n\t\t\tc.Writer.WriteHeader(http.StatusInternalServerError)\n\t\t\treturn\n\t\t}\n\t\tc.Writer.Header().Add(\"Content-type\", MIMEJSON)\n\t}\n\tif strings.Contains(c.Request.Header.Get(\"Accept-Encoding\"), \"gzip\") {\n\t\tc.Writer.Header().Add(\"Content-Encoding\", \"gzip\")\n\t\tif c.code > 0 {\n\t\t\tc.Writer.WriteHeader(c.code)\n\t\t}\n\t\tgz := gzip.NewWriter(c.Writer)\n\t\tgz.Write(content)\n\t\tgz.Close()\n\t} else {\n\t\tif c.code > 0 {\n\t\t\tc.Writer.WriteHeader(c.code)\n\t\t}\n\t\tc.Writer.Write(content)\n\t}\n}","func (e *TestMilter) Body(m *Modifier) (Response, error) {\n\t// prepare buffer\n\t_ = bytes.NewReader(e.message.Bytes())\n\n\tm.AddHeader(\"name\", \"value\")\n\tm.AddRecipient(\"some.new.rcpt@example.com\")\n\tm.ChangeFrom(\"new.from@example.com\")\n\tm.ChangeHeader(0, \"Subject\", \"New Subject\")\n\tm.DeleteRecipient(\"to@example.com\")\n\tm.InsertHeader(0, \"new\", \"value\")\n\tm.ReplaceBody([]byte(\"new body\"))\n\n\t// accept message by default\n\treturn RespAccept, nil\n}","func (l Lambda) Body() Expression {\n\treturn l.body\n}","func getBody(id string, actionType models.ActionType) ([]byte, error) {\n\treturn json.Marshal(models.CallbackAlert{ActionType: actionType, Id: id})\n}","func (es *EmailDeliverer) getBody(alertCtx AlertContext) (string, error) {\n\tout := &bytes.Buffer{}\n\ttemplate := getTemplate(alertCtx)\n\terr := es.render.Render(out, alertCtx, \"content\", template)\n\tif err != nil {\n\t\treturn \"\", errors.WithStack(err)\n\t}\n\treturn out.String(), nil\n}","func main() {\n\tdomTarget := dom.GetWindow().Document().GetElementByID(\"app\")\n\n\tr.Render(container.Container(), domTarget)\n}","func home(w http.ResponseWriter, r *http.Request) {\n\tw.Write([]byte(`\n\t