_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c13500
// The namespace of the node. This is the empty string if there // no associated namespace.
c13501
// ToXml generates an indented XML document with an XML declaration. // It is not guaranteed to be well formed unless xmlNode is an element node, // or a document node with only one element child. // If you need finer control over the formatting, call SerializeWithFormat. // If encoding is nil, the document's output en...
c13502
// ToUnformattedXml generates an unformatted XML document without an XML declaration. // This is useful for conforming to various standards and for unit testing, although // the output is not guaranteed to be well formed unless xmlNode is an element node.
c13503
// ToHtml generates an indented XML document that conforms to HTML 4.0 rules; meaning // that some elements may be unclosed or forced to use end tags even when empty. // If you want to output XHTML, call SerializeWithFormat and enable the XML_SAVE_XHTML // flag as part of the format. // If encoding is nil, the document...
c13504
// Add a namespace declaration to an element. // This is typically done on the root element or node high up in the tree // to avoid duplication. The declaration is not created if the namespace // is already declared in this scope with the same prefix.
c13505
// ReadFile loads an XmlDocument from a filename. The encoding declared in the document will be // used as the input encoding. If no encoding is declared, the library will use the alogrithm // in the XML standard to determine if the document is encoded with UTF-8 or UTF-16.
c13506
// DocPtr provides access to the libxml2 structure underlying the document.
c13507
// Root returns the root node of the document. Newly created documents do not // have a root node until an element node is added a child of the document. // // Documents that have multiple root nodes are invalid adn the behaviour is // not well defined.
c13508
// Get an element node by the value of its ID attribute. By convention this attribute // is named id, but the actual name of the attribute is set by the document's DTD or schema. // // The value for an ID attribute is guaranteed to be unique within a valid document.
c13509
//CreateTextNode creates a text node. It can be added as a child of an element. // // The data argument is XML-escaped and used as the content of the node.
c13510
//CreateCDataNode creates a CDATA node. CDATA nodes can // only be children of an element. // // The data argument will become the content of the newly created node.
c13511
//CreateCommentNode creates a comment node. Comment nodes can // be children of an element or of the document itself. // // The data argument will become the content of the comment.
c13512
//CreatePINode creates a processing instruction node with the specified name and data. // Processing instruction nodes can be children of an element or of the document itself. // // While it's common to use an attribute-like syntax for processing instructions, the data // is actually an arbitrary string that you will n...
c13513
// Return the value of an NDATA entity declared in the DTD. If there is no such entity or // the value cannot be encoded as a valid URI, an empty string is returned. // // Note that this library assumes you already know the name of entity and does not // expose any way of getting the list of entities.
c13514
// Free the C structures associated with this document.
c13515
// Produce a slice of unsafe.Pointer objects, suitable for passing to a C function
c13516
// Produce a C.xmlXPathObjectPtr suitable for passing to libxml2
c13517
// Produce a C.xmlXPathObjectPtr marked as a ResultValueTree, suitable for passing to libxml2
c13518
// Convert an arbitrary value into a C.xmlXPathObjectPtr // Unrecognised and nil values are converted to empty node sets.
c13519
//create a document
c13520
//parse a string to document
c13521
// LocalAssets contains the local objects to be uploaded
c13522
// Debugf prints debug output when EnvDebug is set
c13523
// PrintRedf prints red error message to console.
c13524
// NewGitHubClient creates and initializes a new GitHubClient
c13525
// SetUploadURL constructs the upload URL for a release
c13526
// CreateRelease creates a new release object in the GitHub API
c13527
// GetRelease queries the GitHub API for a specified release object
c13528
// EditRelease edit a release object within the GitHub API
c13529
// DeleteRelease deletes a release object within the GitHub API
c13530
// DeleteTag deletes a tag from the GitHub API
c13531
// UploadAsset uploads specified assets to a given release object
c13532
// ListAssets lists assets associated with a given release
c13533
// OutputVersion checks the current version and compares it against releases // available on GitHub. If there is a newer version available, it prints an // update warning.
c13534
// DeleteRelease removes an existing release, if it exists. If it does not exist, // DeleteRelease returns an error
c13535
// DeleteAssets removes uploaded assets for a given release
c13536
// NewFormatter returns a new formatter with following default values.
c13537
// Marshal marshals and formats JSON data.
c13538
// Format formats JSON string.
c13539
// GetPairTickerInfo is a helper method that returns given `pair`'s `PairTickerInfo`
c13540
// UnmarshalJSON takes a json array from kraken and converts it into an OrderBookItem.
c13541
// New creates a new Kraken API client
c13542
// Time returns the server's time
c13543
// Assets returns the servers available assets
c13544
// AssetPairs returns the servers available asset pairs
c13545
// Ticker returns the ticker for given comma separated pairs
c13546
// Trades returns the recent trades for given pair
c13547
// Balance returns all account asset balances
c13548
// TradeBalance returns trade balance info
c13549
// OpenOrders returns all open orders
c13550
// ClosedOrders returns all closed orders
c13551
// Depth returns the order book for given pair and orders count.
c13552
// CancelOrder cancels order
c13553
// QueryOrders shows order
c13554
// AddOrder adds new order
c13555
// Ledgers returns ledgers informations
c13556
// DepositAddresses returns deposit addresses
c13557
// Withdraw executes a withdrawal, returning a reference ID
c13558
// Query sends a query to Kraken api for given method and parameters
c13559
// Execute a public method query
c13560
// queryPrivate executes a private method query
c13561
// doRequest executes a HTTP Request to the Kraken API and returns the result
c13562
// isStringInSlice is a helper function to test if given term is in a list of strings
c13563
// getHMacSha512 creates a hmac hash with sha512
c13564
// Sign creates a concatenated consumer and token secret key and calculates // the HMAC digest of the message. Returns the base64 encoded digest bytes.
c13565
// Sign uses RSA PKCS1-v1_5 to sign a SHA1 digest of the given message. The // tokenSecret is not used with this signing scheme.
c13566
// NewToken returns a new Token with the given token and token secret.
c13567
// PercentEncode percent encodes a string according to RFC 3986 2.1.
c13568
// shouldEscape returns false if the byte is an unreserved character that // should not be escaped and true otherwise, according to RFC 3986 2.1.
c13569
// RoundTrip authorizes the request with a signed OAuth1 Authorization header // using the auther and TokenSource.
c13570
// contextTransport gets the Transport from the context client or nil.
c13571
// NewConfig returns a new Config with the given consumer key and secret.
c13572
// Client returns an HTTP client which uses the provided ctx and access Token.
c13573
// NewClient returns a new http Client which signs requests via OAuth1.
c13574
// ParseAuthorizationCallback parses an OAuth1 authorization callback request // from a provider server. The oauth_token and oauth_verifier parameters are // parsed to return the request token from earlier in the flow and the // verifier string. // See RFC 5849 2.2 Resource Owner Authorization.
c13575
// commonOAuthParams returns a map of the common OAuth1 protocol parameters, // excluding the oauth_signature parameter. This includes the realm parameter // if it was set in the config. The realm parameter will not be included in // the signature base string as specified in RFC 5849 3.4.1.3.1.
c13576
// Returns the Unix epoch seconds.
c13577
// Returns the Config's Signer or the default Signer.
c13578
// encodeParameters percent encodes parameter keys and values according to // RFC5849 3.6 and RFC3986 2.1 and returns a new map.
c13579
// signatureBase combines the uppercase request method, percent encoded base // string URI, and normalizes the request parameters int a parameter string. // Returns the OAuth1 signature base string according to RFC5849 3.4.1.
c13580
// baseURI returns the base string URI of a request according to RFC 5849 // 3.4.1.2. The scheme and host are lowercased, the port is dropped if it // is 80 or 443, and the path minus query parameters is included.
c13581
// main performs Twitter PIN-based 3-legged OAuth 1 from the command line
c13582
// Bytes gets written content.
c13583
// PingSearchEngines requests some ping server from it calls Sitemap.PingSearchEngines.
c13584
// NewSitemapURL returns the created the SitemapURL's pointer // and it validates URL types error.
c13585
// XML is building xml.
c13586
// Write will create sitemap xml file into the s3.
c13587
// URLJoinBy that's convenient.
c13588
// NewSitemap returns the created the Sitemap's pointer
c13589
// Create method must be that calls first this method in that before call to Add method on this struct.
c13590
// Add Should call this after call to Create method on this struct.
c13591
// Finalize writes sitemap and index files if it had some // specific condition in BuilderFile struct.
c13592
// NewBuilderIndexfile returns the created the BuilderIndexfile's pointer
c13593
// Add method joins old bytes with creates bytes by it calls from Sitemap.Finalize method.
c13594
// XMLContent and BuilderFile.XMLContent share almost the same behavior.
c13595
// Write and Builderfile.Write are almost the same behavior.
c13596
// Directory returns path to combine publicPath and sitemapsPath on file systems. // It also indicates where sitemap files are.
c13597
// Path returns path to combine publicPath, sitemapsPath and Filename on file systems. // It also indicates where sitemap name is.
c13598
// PathInPublic returns path to combine sitemapsPath and Filename on website. // It also indicates where url file path is.
c13599
// URL returns path to combine SitemapsHost, sitemapsPath and // Filename on website with it uses ResolveReference.