_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c13600
// Filesize returns file size this struct has.
c13601
// Filename returns sitemap filename.
c13602
// ReserveName returns that sets filename if this struct didn't keep filename and // it returns reserved filename if this struct keeps filename also.
c13603
// Write writes sitemap and index files that used from Adapter interface.
c13604
// Summary outputs to generated file summary for console.
c13605
// NewNamer returns created the Namer's pointer
c13606
// String returns that combines filename base and file extension.
c13607
// Next is going to go to next index for filename.
c13608
// Previous is going to go to previous index for filename.
c13609
// ToLowerString converts lower strings from including capital or upper strings.
c13610
// spaceDecompose is separating strings for the SetBuilderElementValue
c13611
// NewOptions returns the created the Options's pointer
c13612
// SitemapsHost sets that arg from Sitemap.SitemapsHost method
c13613
// IndexLocation returns the Location's pointer with // set option to arguments for BuilderIndexfile struct.
c13614
// Namer returns Namer's pointer cache. If didn't create that yet, // It also returns created Namer's pointer.
c13615
// gzip will create sitemap file as a gzip.
c13616
// plain will create uncompressed file.
c13617
// NewSitemapIndexURL and NewSitemapURL are almost the same behavior.
c13618
// XML and sitemapIndexURL.XML are almost the same behavior.
c13619
// NewBuilderFile returns the created the BuilderFile's pointer
c13620
// Add method joins old bytes with creates bytes by it calls from Sitemap.Add method.
c13621
// isFileCanFit checks bytes to bigger than consts values.
c13622
// XMLContent will return an XML of the sitemap built
c13623
// Write will write pooled bytes with header and footer to // Location path for output sitemap file.
c13624
// PrivateKeyToCurve25519 converts an ed25519 private key into a corresponding // curve25519 private key such that the resulting curve25519 public key will // equal the result from PublicKeyToCurve25519.
c13625
// PublicKeyToCurve25519 converts an Ed25519 public key into the curve25519 // public key that would be generated from the same private key.
c13626
// feBytesLess returns one if a <= b and zero otherwise.
c13627
// RepresentativeToPublicKey converts a uniform representative value for a // curve25519 public key, as produced by ScalarBaseMult, to a curve25519 public // key.
c13628
// equal returns 1 if b == c and 0 otherwise.
c13629
// Verify returns true iff sig is a valid signature of message by publicKey.
c13630
// Parse implements FlagParser.Parse interface
c13631
// HelpCommandFn implements buildin help command function
c13632
// HelpCommand returns a buildin help command
c13633
// Daemon startup app as a daemon process, success if result from stderr has prefix successPrefix
c13634
// ReadJSON reads data as a json structure into argv
c13635
// ReadJSONFromFile is similar to ReadJSON, but read from file
c13636
// ReadJSONConfigFromFile is similar to ReadJSONFromFile, but allows reading file from where the executable file resides as well
c13637
// Decode implements cli.Decoder interface
c13638
// Register registers a child command
c13639
// RegisterFunc registers handler as child command
c13640
// RegisterTree registers a command tree
c13641
// RunWith runs the command with args and writer,httpMethods
c13642
// Usage returns the usage string of command
c13643
// Root returns command's ancestor
c13644
// Route finds command full matching router
c13645
// SubRoute finds command partial matching router
c13646
// findChild finds child command by name
c13647
// ListChildren returns all names of command children
c13648
// ChildrenDescriptions returns all children's brief infos by one string
c13649
// Suggestions returns all similar commands
c13650
// SetReader replaces the native reader
c13651
// Read implementes io.Reader
c13652
// SetWriter replaces the native writer
c13653
// Write implementes io.Writer interface
c13654
// NewLog creates new logger
c13655
// RegisterFlagParser registers FlagParserCreator by name
c13656
// LaunchEditor launchs the specified editor with a random filename
c13657
// NOpt returns num of options
c13658
// Argv returns parsed args object
c13659
// RootArgv returns parsed root args object
c13660
// GetArgvList gets argv objects
c13661
// GetArgvAt gets the i-th argv object
c13662
// IsSet determins whether `flag` is set
c13663
// FormValues returns parsed args as url.Values
c13664
// Writer returns writer
c13665
// String writes formatted string to writer
c13666
// JSON writes json string of obj to writer
c13667
// JSONIndent writes pretty json string of obj to writer
c13668
// JSONIndentln writes pretty json string of obj end with "\n" to writer
c13669
// Run runs a single command app
c13670
// RunWithArgs is similar to Run, but with args instead of os.Args
c13671
// Root registers forest for root and returns root
c13672
// Tree creates a CommandTree
c13673
// Parse parses args to object argv
c13674
// Basename returns the file name without extension.
c13675
// abortOn will quit on anticipated errors gracefully without stack trace
c13676
// verbose will print info to stderr according to the verbose level setting
c13677
// RegisterHTTP init HTTPRouters for command
c13678
// ServeHTTP implements HTTP handler
c13679
// ListenAndServeHTTP set IsServer flag with true and startup http service
c13680
// Serve set IsServer with true and serve http with listeners
c13681
// RPC runs the command from remote
c13682
// InstallBashCompletion install bash_completion
c13683
// Validate implements cli.Validator interface
c13684
// New will generate a new NUID and properly initialize the prefix, sequential start, and sequential increment.
c13685
// Generate the next NUID string from the global locked NUID instance.
c13686
// Generate the next NUID string.
c13687
// Resets the sequential portion of the NUID.
c13688
// AddCmd adds cmd as a subcommand.
c13689
// Children returns the subcommands of c.
c13690
// HelpText returns the computed help of the command and its subcommands.
c13691
// findChildCmd returns the subcommand with matching name or alias.
c13692
// FindCmd finds the matching Cmd for args. // It returns the Cmd and the remaining args.
c13693
// NewWithConfig creates a new shell with custom readline config.
c13694
// NewWithReadline creates a new shell with a custom readline instance.
c13695
// Active tells if the shell is active. i.e. Start is previously called.
c13696
// CustomCompleter allows use of custom implementation of readline.Autocompleter.
c13697
// SetHistoryPath sets where readlines history file location. Use an empty // string to disable history file. It is empty by default.
c13698
// SetHomeHistoryPath is a convenience method that sets the history path // in user's home directory.
c13699
// SetPager sets the pager and its arguments for paged output