_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c13100 | train | // WriteTo writes this entity's header and body to w. | {
"resource": ""
} | ||
c13101 | train | // NewReader creates a new mail reader. | {
"resource": ""
} | ||
c13102 | train | // CreateReader reads a mail header from r and returns a new mail reader.
//
// If the message uses an unknown transfer encoding or charset, CreateReader
// returns an error that verifies message.IsUnknownCharset, but also returns a
// Reader that can be used. | {
"resource": ""
} | ||
c13103 | train | // NextPart returns the next mail part. If there is no more part, io.EOF is
// returned as error.
//
// The returned Part.Body must be read completely before the next call to
// NextPart, otherwise it will be discarded.
//
// If the part uses an unknown transfer encoding or charset, NextPart returns an
// error that ve... | {
"resource": ""
} | ||
c13104 | train | // Close finishes the reader. | {
"resource": ""
} | ||
c13105 | train | // Reader returns an io.Reader that converts the provided charset to UTF-8. | {
"resource": ""
} | ||
c13106 | train | // charsetReader calls CharsetReader if non-nil. | {
"resource": ""
} | ||
c13107 | train | // decodeHeader decodes an internationalized header field. If it fails, it
// returns the input string and the error. | {
"resource": ""
} | ||
c13108 | train | // createWriter creates a new Writer writing to w with the provided header.
// Nothing is written to w when it is called. header is modified in-place. | {
"resource": ""
} | ||
c13109 | train | // CreateWriter creates a new message writer to w. If header contains an
// encoding, data written to the Writer will automatically be encoded with it.
// The charset needs to be utf-8 or us-ascii. | {
"resource": ""
} | ||
c13110 | train | // CreatePart returns a Writer to a new part in this multipart entity. If this
// entity is not multipart, it fails. The body of the part should be written to
// the returned io.WriteCloser. | {
"resource": ""
} | ||
c13111 | train | // Add adds the key, value pair to the header. It prepends to any existing
// fields associated with key. | {
"resource": ""
} | ||
c13112 | train | // Get gets the first value associated with the given key. If there are no
// values associated with the key, Get returns "". | {
"resource": ""
} | ||
c13113 | train | // Set sets the header fields associated with key to the single field value.
// It replaces any existing values associated with key. | {
"resource": ""
} | ||
c13114 | train | // Has checks whether the header has a field with the specified key. | {
"resource": ""
} | ||
c13115 | train | // FieldsByKey iterates over all fields having the specified key.
//
// The header may not be mutated while iterating, except using HeaderFields.Del. | {
"resource": ""
} | ||
c13116 | train | // trim returns s with leading and trailing spaces and tabs removed.
// It does not assume Unicode or UTF-8. | {
"resource": ""
} | ||
c13117 | train | // skipSpace skips R over all spaces and returns the number of bytes skipped. | {
"resource": ""
} | ||
c13118 | train | // Strip newlines and spaces around newlines. | {
"resource": ""
} | ||
c13119 | train | // formatHeaderField formats a header field, ensuring each line is no longer
// than 76 characters. It tries to fold lines at whitespace characters if
// possible. If the header contains a word longer than this limit, it will be
// split. | {
"resource": ""
} | ||
c13120 | train | // WriteHeader writes a MIME header to w. | {
"resource": ""
} | ||
c13121 | train | // CreateWriter writes a mail header to w and creates a new Writer. | {
"resource": ""
} | ||
c13122 | train | // CreateInline creates a InlineWriter. One or more parts representing the same
// text in different formats can be written to a InlineWriter. | {
"resource": ""
} | ||
c13123 | train | // CreateSingleInline creates a new single text part with the provided header.
// The body of the part should be written to the returned io.WriteCloser. Only
// one single text part should be written, use CreateInline if you want multiple
// text parts. | {
"resource": ""
} | ||
c13124 | train | // CreateAttachment creates a new attachment with the provided header. The body
// of the part should be written to the returned io.WriteCloser. | {
"resource": ""
} | ||
c13125 | train | // CreatePart creates a new text part with the provided header. The body of the
// part should be written to the returned io.WriteCloser. | {
"resource": ""
} | ||
c13126 | train | // GetEntry returns a pointer to the "Entry" found with the given "key"
// if nothing found then it returns nil, so be careful with that,
// it's not supposed to be used by end-developers. | {
"resource": ""
} | ||
c13127 | train | // GetStringDefault returns the entry's value as string, based on its key.
// If not found returns "def". | {
"resource": ""
} | ||
c13128 | train | // Serialize returns the byte representation of the current Store. | {
"resource": ""
} | ||
c13129 | train | // StartFasthttp starts the session for the particular request. | {
"resource": ""
} | ||
c13130 | train | // ShiftExpirationFasthttp move the expire date of a session to a new date
// by using session default timeout configuration. | {
"resource": ""
} | ||
c13131 | train | // UpdateExpiration change expire date of a session to a new date
// by using timeout value passed by `expires` receiver. | {
"resource": ""
} | ||
c13132 | train | // DestroyFasthttp remove the session data and remove the associated cookie. | {
"resource": ""
} | ||
c13133 | train | // GetInt same as `Get` but returns its int representation,
// if key doesn't exist then it returns -1 and a non-nil error. | {
"resource": ""
} | ||
c13134 | train | // GetFloat32 same as `Get` but returns its float32 representation,
// if key doesn't exist then it returns -1 and a non-nil error. | {
"resource": ""
} | ||
c13135 | train | // GetCookieFasthttp returns cookie's value by it's name
// returns empty string if nothing was found. | {
"resource": ""
} | ||
c13136 | train | // AddCookieFasthttp adds a cookie. | {
"resource": ""
} | ||
c13137 | train | // OnUpdateExpiration will re-set the database's session's entry ttl. | {
"resource": ""
} | ||
c13138 | train | // CreateTable creates an empty Table using defaults for style. | {
"resource": ""
} | ||
c13139 | train | // AddRow adds the supplied items as cells in one row of the table. | {
"resource": ""
} | ||
c13140 | train | // AddHeaders supplies column headers for the table. | {
"resource": ""
} | ||
c13141 | train | // SetAlign changes the alignment for elements in a column of the table;
// alignments are stored with each cell, so cells added after a call to
// SetAlign will not pick up the change. Columns are numbered from 1. | {
"resource": ""
} | ||
c13142 | train | // SetHTMLStyleTitle lets an HTML output mode be chosen; we should rework this
// into a more generic and extensible API as we clean up termtables. | {
"resource": ""
} | ||
c13143 | train | // renderTerminal returns a string representation of a fully rendered table,
// drawn out for display, with embedded newlines. | {
"resource": ""
} | ||
c13144 | train | // Render returns a string representing this separator, with all border
// crossings appropriately chosen. | {
"resource": ""
} | ||
c13145 | train | // GetEnvWindowSize returns the window Size, as determined by process
// environment; if either LINES or COLUMNS is present, and whichever is
// present is also numeric, the Size will be non-nil. If Size is nil,
// there's insufficient data in environ. If one entry is 0, that means
// that the environment does not in... | {
"resource": ""
} | ||
c13146 | train | // Render returns the string representation of a horizontal rule line in the
// table. | {
"resource": ""
} | ||
c13147 | train | // CreateRow returns a Row where the cells are created as needed to hold each
// item given; each item can be a Cell or content to go into a Cell created
// to hold it. | {
"resource": ""
} | ||
c13148 | train | // AddCell adds one item to a row as a new cell, where the item is either a
// Cell or content to be put into a cell. | {
"resource": ""
} | ||
c13149 | train | // HTML returns an HTML representations of the contents of one row of a table. | {
"resource": ""
} | ||
c13150 | train | // RenderHTML returns a string representation of a the table, suitable for
// inclusion as HTML elsewhere. Primary use-case controlling layout style
// is for inclusion into Markdown documents, documenting normal table use.
// Thus we leave the padding in place to have columns align when viewed as
// plain text and re... | {
"resource": ""
} | ||
c13151 | train | // Format the raw value as a string depending on the type | {
"resource": ""
} | ||
c13152 | train | // setUtfBoxStyle changes the border characters to be suitable for use when
// the output stream can render UTF-8 characters. | {
"resource": ""
} | ||
c13153 | train | // fillStyleRules populates members of the TableStyle box-drawing specification
// with BorderI as the default. | {
"resource": ""
} | ||
c13154 | train | // buildReplaceContent creates a function closure, with minimal bound lexical
// state, which replaces content | {
"resource": ""
} | ||
c13155 | train | // GetTerminalWindowSize returns the width and height of a terminal in Windows. | {
"resource": ""
} | ||
c13156 | train | // Get gets a Buffer from the BufferPool, or creates a new one if none are
// available in the pool. | {
"resource": ""
} | ||
c13157 | train | // New constructs a new Render instance with the supplied options. | {
"resource": ""
} | ||
c13158 | train | // TemplateLookup is a wrapper around template.Lookup and returns
// the template with the given name that is associated with t, or nil
// if there is no such template. | {
"resource": ""
} | ||
c13159 | train | // Render is the generic function called by XML, JSON, Data, HTML, and can be called by custom implementations. | {
"resource": ""
} | ||
c13160 | train | // Data writes out the raw bytes as binary data. | {
"resource": ""
} | ||
c13161 | train | // HTML builds up the response from the specified template and bindings. | {
"resource": ""
} | ||
c13162 | train | // JSON marshals the given interface object and writes the JSON response. | {
"resource": ""
} | ||
c13163 | train | // JSONP marshals the given interface object and writes the JSON response. | {
"resource": ""
} | ||
c13164 | train | // XML marshals the given interface object and writes the XML response. | {
"resource": ""
} | ||
c13165 | train | // Write outputs the header content. | {
"resource": ""
} | ||
c13166 | train | // Render a data response. | {
"resource": ""
} | ||
c13167 | train | // Render a HTML response. | {
"resource": ""
} | ||
c13168 | train | // Render a JSON response. | {
"resource": ""
} | ||
c13169 | train | // Render a JSONP response. | {
"resource": ""
} | ||
c13170 | train | // Render a text response. | {
"resource": ""
} | ||
c13171 | train | // Render an XML response. | {
"resource": ""
} | ||
c13172 | train | // Dispatch triggers the middleware chains and performs the HTTP request. | {
"resource": ""
} | ||
c13173 | train | // Use registers a new plugin to the middleware stack. | {
"resource": ""
} | ||
c13174 | train | // UseHandler registers a phase specific plugin handler in the middleware stack. | {
"resource": ""
} | ||
c13175 | train | // Flush flushes the plugins stack. | {
"resource": ""
} | ||
c13176 | train | // GetStack gets the current middleware plugins stack. | {
"resource": ""
} | ||
c13177 | train | // Clone creates a new Middleware instance based on the current one. | {
"resource": ""
} | ||
c13178 | train | // URL parses and defines a new URL in the outgoing request | {
"resource": ""
} | ||
c13179 | train | // Path defines a new URL path in the outgoing request | {
"resource": ""
} | ||
c13180 | train | // Param replaces one or multiple path param expressions by the given value | {
"resource": ""
} | ||
c13181 | train | // String defines the HTTP request body based on the given string. | {
"resource": ""
} | ||
c13182 | train | // JSON defines a JSON body in the outgoing request.
// Supports strings, array of bytes or buffer. | {
"resource": ""
} | ||
c13183 | train | // Reader defines a io.Reader stream as request body.
// Content-Type header won't be defined automatically, you have to declare it manually. | {
"resource": ""
} | ||
c13184 | train | // If creates a new multiplexer that will be executed if all the mux matchers passes. | {
"resource": ""
} | ||
c13185 | train | // Or creates a new multiplexer that will be executed if at least one mux matcher passes. | {
"resource": ""
} | ||
c13186 | train | // Match creates a new multiplexer based on a given matcher function. | {
"resource": ""
} | ||
c13187 | train | // Path returns a new multiplexer who matches an HTTP request
// path based on the given regexp pattern. | {
"resource": ""
} | ||
c13188 | train | // Type returns a new multiplexer who matches an HTTP response
// Content-Type header field based on the given type string. | {
"resource": ""
} | ||
c13189 | train | // Status returns a new multiplexer who matches an HTTP response
// status code based on the given status codes. | {
"resource": ""
} | ||
c13190 | train | // StatusRange returns a new multiplexer who matches an HTTP response
// status code based on the given status range, including both numbers. | {
"resource": ""
} | ||
c13191 | train | // Error returns a new multiplexer who matches errors originated
// in the client or in the server. | {
"resource": ""
} | ||
c13192 | train | // ServerError returns a new multiplexer who matches response errors by the server. | {
"resource": ""
} | ||
c13193 | train | // New creates a new multiplexer with default settings. | {
"resource": ""
} | ||
c13194 | train | // Match matches the give Context againts a list of matchers and
// returns `true` if all the matchers passed. | {
"resource": ""
} | ||
c13195 | train | // AddMatcher adds a new matcher function in the current mumultiplexer matchers stack. | {
"resource": ""
} | ||
c13196 | train | // Handler returns the function handler to match an incoming HTTP transacion
// and trigger the equivalent middleware phase. | {
"resource": ""
} | ||
c13197 | train | // Use registers a new plugin in the middleware stack. | {
"resource": ""
} | ||
c13198 | train | // UseHandler registers a new error phase middleware handler. | {
"resource": ""
} | ||
c13199 | train | // TLS defines the maximum amount of time waiting for a TLS handshake | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.