_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c15100 | // GetClipboard returns the contents of the clipboard. It assumes the text was
// not captured from an auto-expanded cursor. It exists for Sublime Text API
// compatibility. | |
c15101 | // SetClipboard modifies the contents of the clipboard. It assumes the text was
// not captured from an auto-expanded cursor. It exists for Sublime Text API
// compatibility. | |
c15102 | // UseMiddleware registers middlewares that implement the api2go.HandlerFunc
// Middleware is run before any generated routes. | |
c15103 | // NewAPIVersion can be used to chain an additional API version to the routing of a previous
// one. Use this if you have multiple version prefixes and want to combine all
// your different API versions. This reuses the baseURL or URLResolver | |
c15104 | // NewAPIWithResolver can be used to create an API with a custom URL resolver. | |
c15105 | // NewAPI returns an initialized API instance
// `prefix` is added in front of all endpoints. | |
c15106 | // newAPI is now an internal method that can be changed if params are changing | |
c15107 | // middlewareChain executes the middleeware chain setup | |
c15108 | // try to find the referenced resource and call the findAll Method with referencing resource id as param | |
c15109 | // Links returns a jsonapi.Links object to include in the top-level response | |
c15110 | // Insert a user | |
c15111 | //GetBaseURL implements `URLResolver` interface | |
c15112 | // FindAll to satisfy api2go data source interface | |
c15113 | // PaginatedFindAll can be used to load users in chunks | |
c15114 | // FindOne to satisfy `api2go.DataSource` interface
// this method should return the user with the given ID, otherwise an error | |
c15115 | // Create method to satisfy `api2go.DataSource` interface | |
c15116 | // Delete to satisfy `api2go.DataSource` interface | |
c15117 | //Update stores all changes on the user | |
c15118 | // GetReferencedIDs to satisfy the jsonapi.MarshalLinkedRelations interface | |
c15119 | // GetReferencedStructs to satisfy the jsonapi.MarhsalIncludedRelations interface | |
c15120 | // SetToManyReferenceIDs sets the sweets reference IDs and satisfies the jsonapi.UnmarshalToManyRelations interface | |
c15121 | // AddToManyIDs adds some new sweets that a users loves so much | |
c15122 | // DeleteToManyIDs removes some sweets from a users because they made him very sick | |
c15123 | // Handle each method like before and wrap them into julienschmidt handler func style | |
c15124 | // GetRouteParameter implemention will extract the param the julienschmidt way | |
c15125 | // Set a string key value in the context | |
c15126 | // Get a key value from the context | |
c15127 | // ContextQueryParams fetches the QueryParams if Set | |
c15128 | // Create a new choc | |
c15129 | // Update a choc | |
c15130 | // Unmarshal parses a JSON API compatible JSON and populates the target which
// must implement the `UnmarshalIdentifier` interface. | |
c15131 | // extracts all found relationships and set's them via SetToOneReferenceID or
// SetToManyReferenceIDs | |
c15132 | // GetAll of the chocolate | |
c15133 | // GetOne tasty chocolate | |
c15134 | // Insert a fresh one | |
c15135 | // Update updates an existing chocolate | |
c15136 | // UnmarshalJSON unmarshals the JSON-encoded data to the DataObject field if the
// root element is an object or to the DataArray field for arrays. | |
c15137 | // MarshalJSON returns the JSON encoding of the DataArray field or the DataObject
// field. It will return "null" if neither of them is set. | |
c15138 | // UnmarshalJSON marshals a string value into the Href field or marshals an
// object value into the whole struct. | |
c15139 | // MarshalJSON returns the JSON encoding of only the Href field if the Meta
// field is empty, otherwise it marshals the whole struct. | |
c15140 | // marshalHTTPError marshals an internal httpError | |
c15141 | // Error returns a nice string represenation including the status | |
c15142 | // Jsonify returns a JSON formatted key name from a go struct field name. | |
c15143 | // MarshalWithURLs can be used to pass along a ServerInformation implementor. | |
c15144 | // Marshal wraps data in a Document and returns its JSON encoding.
//
// Data can be a struct, a pointer to a struct or a slice of structs. All structs
// must at least implement the `MarshalIdentifier` interface. | |
c15145 | // FmtTimeMedium returns the medium time representation of 't' for 'ga_IE' | |
c15146 | // FmtTimeFull returns the full time representation of 't' for 'rof_TZ' | |
c15147 | // FmtTimeLong returns the long time representation of 't' for 'tzm' | |
c15148 | // FmtDateShort returns the short date representation of 't' for 'vun_TZ' | |
c15149 | // String returns the string value of PluralRule | |
c15150 | // F returns the visible fractional digits in N, with trailing zeros. | |
c15151 | // T returns the visible fractional digits in N, without trailing zeros. | |
c15152 | // pluralStringToInt returns the enum value of 'plural' provided | |
c15153 | // leaf0x80000004 looks at the Processor Brand String in leaves 0x80000002 through 0x80000004 | |
c15154 | // ExtractOrgHeaders finds and returns all of the headers
// from a bufio.Reader and returns them as their own byte slice | |
c15155 | // OrgHeaders find all of the headers from a byte slice and returns
// them as a map of string interface | |
c15156 | // NewParser returns a new parser with the inlineCallbacks required for org content | |
c15157 | // OrgCommon is the easiest way to parse a byte slice of org content and makes assumptions
// that the caller wants to use blackfriday's HTMLRenderer with XHTML | |
c15158 | // Org is a convenience name for OrgOptions | |
c15159 | // Elements
// ~~ Keywords | |
c15160 | // ~~ Text Markup | |
c15161 | // Adds the type converter to the encoder | |
c15162 | // Encode writes the JSON encoding of v to the stream | |
c15163 | // Str2JSType extract a JavaScript type from a string | |
c15164 | // Convert converts the given XML document to JSON | |
c15165 | // AddChild appends a node to the list of children | |
c15166 | // GetChild returns child by path if exists. Path looks like "grandparent.parent.child.grandchild" | |
c15167 | // Decode reads the next JSON-encoded value from its
// input and stores it in the value pointed to by v. | |
c15168 | // trimNonGraphic returns a slice of the string s, with all leading and trailing
// non graphic characters and spaces removed.
//
// Graphic characters include letters, marks, numbers, punctuation, symbols,
// and spaces, from categories L, M, N, P, S, Zs.
// Spacing characters are set by category Z and property Patter... | |
c15169 | // Returns an error if the value is not actually null | |
c15170 | // Deprecated. Use PackWithOptions. | |
c15171 | // Deprecated. Use UnpackWithOptions. | |
c15172 | // new returns a HyperLogLog Sketch with 2^precision registers | |
c15173 | // Clone returns a deep copy of sk. | |
c15174 | // Converts to normal if the sparse list is too large. | |
c15175 | // Merge takes another Sketch and combines it with Sketch h.
// If Sketch h is using the sparse Sketch, it will be converted
// to the normal Sketch. | |
c15176 | // Convert from sparse Sketch to dense Sketch. | |
c15177 | // Insert adds element e to sketch | |
c15178 | // InsertHash adds hash x to sketch | |
c15179 | // Estimate returns the cardinality of the Sketch | |
c15180 | // m is MemP or image.Image | |
c15181 | // NewRGBImage returns a new RGBImage with the given bounds. | |
c15182 | // NewRGB48Image returns a new RGB48Image with the given bounds. | |
c15183 | // DecodeConfig returns the color model and dimensions of a WEBP image without
// decoding the entire image. | |
c15184 | // Decode reads a WEBP image from r and returns it as an image.Image. | |
c15185 | // Encode writes the image m to w in WEBP format. | |
c15186 | // DecodeGrayToSize decodes a Gray image scaled to the given dimensions. For
// large images, the DecodeXXXToSize methods are significantly faster and
// require less memory compared to decoding a full-size image and then resizing it. | |
c15187 | // DecodeRGBToSize decodes an RGB image scaled to the given dimensions. | |
c15188 | // DecodeRGBAToSize decodes a Gray image scaled to the given dimensions. | |
c15189 | // Equal takes a destination object and asserts that a source object and
// destination object are equal to one another. It will fail the assertion and
// print a corresponding message if the objects are not equivalent. | |
c15190 | // IsTrue asserts that a source is equal to true. Optional messages can be
// provided for inclusion in the displayed message if the assertion fails. It
// will fail the assertion if the source does not resolve to true. | |
c15191 | // IsFalse asserts that a source is equal to false. Optional messages can be
// provided for inclusion in the displayed message if the assertion fails. It
// will fail the assertion if the source does not resolve to false. | |
c15192 | // NewProxy returns a new Websocket reverse proxy that rewrites the
// URL's to the scheme, host and base path provider in target. | |
c15193 | // OutputXML returns the text that including tags name. | |
c15194 | // LoadURL loads the XML document from the specified URL. | |
c15195 | // CreateXPathNavigator creates a new xpath.NodeNavigator for the specified html.Node. | |
c15196 | // Find searches the Node that matches by the specified XPath expr. | |
c15197 | // FindOne searches the Node that matches by the specified XPath expr,
// and returns first element of matched. | |
c15198 | // NewPrometheus generates a new set of metrics with a certain subsystem name | |
c15199 | // SetPushGateway sends metrics to a remote pushgateway exposed on pushGatewayURL
// every pushIntervalSeconds. Metrics are fetched from metricsURL |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.