_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c14300
// PostForm returns the first value for the named component from POST and PUT body parameters. // If key is not present, it returns the specified default value or an empty string.
c14301
// Next calls the rest of the handlers associated with the current route. // If any of these handlers returns an error, Next will return the error and skip the following handlers. // Next is normally used when a handler needs to do some postprocessing after the rest of the handlers // are executed.
c14302
// Read populates the given struct variable with the data from the current request. // If the request is NOT a GET request, it will check the "Content-Type" header // and find a matching reader from DataReaders to read the request data. // If there is no match or if the request is a GET request, it will use DefaultForm...
c14303
// negotiateLanguage negotiates the acceptable language according to the Accept-Language HTTP header.
c14304
// ReadFormData populates the data variable with the data from the given form values.
c14305
// DefaultJWTTokenHandler stores the parsed JWT token in the routing context with the key named "JWT".
c14306
// NewJWT creates a new JWT token and returns it as a signed string that may be sent to the client side. // The signingMethod parameter is optional. It defaults to the HS256 algorithm.
c14307
// New creates a new Router object.
c14308
// ServeHTTP handles the HTTP request. // It is required by http.Handler
c14309
// Use appends the specified handlers to the router and shares them with all routes.
c14310
// NotFound specifies the handlers that should be invoked when the router cannot find any route matching a request. // Note that the handlers registered via Use will be invoked first in this case.
c14311
// Find determines the handlers and parameters to use for a specified method and path.
c14312
// HTTPHandlerFunc adapts a http.HandlerFunc into a routing.Handler.
c14313
// newStore creates a new store.
c14314
// Add adds a new data item with the given parametric key. // The number of parameters in the key is returned.
c14315
// Get returns the data item matching the given concrete key. // If the data item was added to the store with a parametric key before, the matching // parameter names and values will be returned as well.
c14316
// add adds a new data item to the tree rooted at the current node. // The number of parameters in the key is returned.
c14317
// addChild creates static and param nodes to store the given data
c14318
// get returns the data item with the key matching the tree rooted at the current node
c14319
// safeSet will fixup b.set to be non-nil and return the field value
c14320
// wordsNeeded calculates the number of words needed for i bits
c14321
// New creates a new BitSet with a hint that length bits will be required
c14322
// extendSetMaybe adds additional words to incorporate new bits if needed
c14323
// Set bit i to 1
c14324
// Clear bit i to 0
c14325
// SetTo sets bit i to value
c14326
// Flip bit at i
c14327
// Shrink shrinks BitSet to desired length in bits. It clears all bits > length // and reduces the size and length of the set. // // A new slice is allocated to store the new bits, so you may see an increase in // memory usage until the GC runs. Normally this should not be a problem, but if you // have an extremely lar...
c14328
// InsertAt takes an index which indicates where a bit should be // inserted. Then it shifts all the bits in the set to the left by 1, starting // from the given index position, and sets the index position to 0. // // Depending on the size of your BitSet, and where you are inserting the new entry, // this method could ...
c14329
// ClearAll clears the entire BitSet
c14330
// Clone this BitSet
c14331
// Copy into a destination BitSet // Returning the size of the destination BitSet // like array copy
c14332
// Equal tests the equvalence of two BitSets. // False if they are of different sizes, otherwise true // only if all the same bits are set
c14333
// DifferenceCardinality computes the cardinality of the differnce
c14334
// IntersectionCardinality computes the cardinality of the union
c14335
// UnionCardinality computes the cardinality of the uniton of the base set // and the compare set.
c14336
// SymmetricDifferenceCardinality computes the cardinality of the symmetric difference
c14337
// Clean last word by setting unused bits to 0
c14338
// All returns true if all bits are set, false otherwise. Returns true for // empty sets.
c14339
// None returns true if no bit is set, false otherwise. Retursn true for // empty sets.
c14340
// IsSuperSet returns true if this is a superset of the other set
c14341
// IsStrictSuperSet returns true if this is a strict superset of the other set
c14342
// DumpAsBits dumps a bit set as a string of bits
c14343
// BinaryStorageSize returns the binary storage requirements
c14344
// WriteTo writes a BitSet to a stream
c14345
// ReadFrom reads a BitSet from a stream written using WriteTo
c14346
// MarshalBinary encodes a BitSet into a binary form and returns the result.
c14347
// UnmarshalBinary decodes the binary form generated by MarshalBinary.
c14348
// MarshalJSON marshals a BitSet as a JSON structure
c14349
// UnmarshalJSON unmarshals a BitSet from JSON created using MarshalJSON
c14350
// Get returns new byte buffer with zero length. // // The byte buffer may be returned to the pool via Put after the use // in order to minimize GC overhead.
c14351
// Put releases byte buffer obtained via Get to the pool. // // The buffer mustn't be accessed after returning to the pool.
c14352
// ReadFrom implements io.ReaderFrom. // // The function appends all the data read from r to b.
c14353
// WriteTo implements io.WriterTo.
c14354
// Write implements io.Writer - it appends p to ByteBuffer.B
c14355
// WriteByte appends the byte c to the buffer. // // The purpose of this function is bytes.Buffer compatibility. // // The function always returns nil.
c14356
// WriteString appends s to ByteBuffer.B.
c14357
// Set sets ByteBuffer.B to p.
c14358
// SetString sets ByteBuffer.B to s.
c14359
// Print is fmt.Print which supports emoji
c14360
// Println is fmt.Println which supports emoji
c14361
// Fprint is fmt.Fprint which supports emoji
c14362
// Fprintf is fmt.Fprintf which supports emoji
c14363
// Sprintf is fmt.Sprintf which supports emoji
c14364
// Errorf is fmt.Errorf which supports emoji
c14365
// InitConfigLinuxResourcesCPU initializes CPU of Linux resources
c14366
// GetPidsData gets cgroup pids data
c14367
// Determine if a new syscall rule should be appended, overwrite an existing rule // or if no action should be taken at all
c14368
// GetPidsData gets cgroup pid ints data
c14369
// LastCap return last cap of system
c14370
// RemoveAllSeccompRules removes all seccomp syscall rules
c14371
// RemoveAllMatchingRules will remove any syscall rules that match the specified action
c14372
// FindCgroup gets cgroup root mountpoint
c14373
// GetSubsystemPath gets path of subsystem
c14374
// NewFromFile loads the template specified in a file into a // configuration Generator.
c14375
// NewFromTemplate loads the template from io.Reader into a // configuration Generator.
c14376
// createEnvCacheMap creates a hash map with the ENV variables given by the config
c14377
// Save writes the configuration into w.
c14378
// SaveToFile writes the configuration into a file.
c14379
// SetVersion sets g.Config.Version.
c14380
// SetRootPath sets g.Config.Root.Path.
c14381
// SetRootReadonly sets g.Config.Root.Readonly.
c14382
// SetHostname sets g.Config.Hostname.
c14383
// SetOCIVersion sets g.Config.Version.
c14384
// ClearAnnotations clears g.Config.Annotations.
c14385
// AddAnnotation adds an annotation into g.Config.Annotations.
c14386
// RemoveAnnotation remove an annotation from g.Config.Annotations.
c14387
// SetProcessConsoleSize sets g.Config.Process.ConsoleSize.
c14388
// SetProcessUID sets g.Config.Process.User.UID.
c14389
// SetProcessUsername sets g.Config.Process.User.Username.
c14390
// SetProcessGID sets g.Config.Process.User.GID.
c14391
// SetProcessCwd sets g.Config.Process.Cwd.
c14392
// SetProcessNoNewPrivileges sets g.Config.Process.NoNewPrivileges.
c14393
// SetProcessTerminal sets g.Config.Process.Terminal.
c14394
// SetProcessApparmorProfile sets g.Config.Process.ApparmorProfile.
c14395
// SetProcessArgs sets g.Config.Process.Args.
c14396
// ClearProcessEnv clears g.Config.Process.Env.
c14397
// AddProcessEnv adds name=value into g.Config.Process.Env, or replaces an // existing entry with the given name.
c14398
// AddMultipleProcessEnv adds multiple name=value into g.Config.Process.Env, or replaces // existing entries with the given name.
c14399
// addEnv looks through adds ENV to the Process and checks envMap for // any duplicates // This is called by both AddMultipleProcessEnv and AddProcessEnv