_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c173500
// stop the stopwatch
c173501
// Function decorator to monitor the execution of an anonymous function // returns an array of the returned Values
c173502
// Function decorator // to monitor a reflected function
c173503
// LogRequest logs a goanna request
c173504
// CommonLogHandler returns a handler that serves HTTP requests // If a logger is not provided, stdout will be used
c173505
// ServeHTTP logs the request and response data to Common Log Format
c173506
// Extract username from the request url
c173507
// UrlFor returns the relative URL for the route name
c173508
// UrlFor returns the avsolute URL for the route name. // UrlBase is used for the URL Host and Scheme
c173509
// Parse parses the JSON-encoded data and stores the result // into the value pointed at by c. // Panics if unsuccessful
c173510
// LoadFromEnv iterates through a // struct's fields and tries to find matching // environment variables. // Returns a map of environment key and values that were // successfully set into the struct
c173511
// RegexPath returns a handler that serves HTTP requests // with the first match of the the given regex from the request URL's Path // and invoking the handler h. RegexPath handles a // request for a path that doesn't match by // replying with an HTTP 404 not found error.
c173512
// CacheControl decorates a handler and adds Cache-Control headers
c173513
// transform YAML to JSON
c173514
// DiscoverWalk will make HTTPS requests to find discovery meta tags and // optionally will use HTTP if insecure is set. Based on the response of the // discoverFn it will continue to recurse up the tree.
c173515
// DiscoverEndpoints will make HTTPS requests to find the ac-discovery meta // tags and optionally will use HTTP if insecure is set. It will not give up // until it has exhausted the path or found an image discovery.
c173516
// JSONFieldsFromStruct returns the names of JSON fields associated // with the given struct. Returns nil if v is not a struct
c173517
// StructFieldFromJSONName returns the struct field name on the // given struct value. Empty value means the field is either not // public, or does not exist. // // This can be used to map JSON field names to actual struct fields.
c173518
// Enumerate lists each word in the Dictionary alphabetically.
c173519
// Release returns the message to the pool for re-use.
c173520
// Wrap returns an error that wraps err, optionally annotating // with the message text.
c173521
// causer detects whether e wraps another error, and if so // returns an Error that also implements the Causer interface.
c173522
// From creates a new context based on ctx. See the Context example.
c173523
// With returns a context.Context with the keyvals attached.
c173524
// Format implements the fmt.Formatter interface. If // the context is printed with "%+v", then it prints // using the String method of the wrapped context.
c173525
// NewWriter creates writer that logs messages to out. If the output writer is a terminal // device, the output will be formatted for improved readability.
c173526
// Levels returns a list of levels and their associated actions.
c173527
// SetLevel sets an individual level and its associated display effect.
c173528
// Suppress instructs the writer to suppress any message with the specified level.
c173529
// IsSuppressed reports true if level should be suppressed.
c173530
// Handle registers a handler that will be called for every logging // event. The function receives a message, which is a structured // representation of the log message text. // // This function is useful for registering handlers that send log // information to external sources.
c173531
// SetOutput sets the output destination for log messages.
c173532
// Enumerate lists the items in a `Directory`
c173533
// All tests whether or not all items present in an Enumerable meet a criteria.
c173534
// All tests whether or not all items present meet a criteria.
c173535
// Any tests an Enumerable to see if there are any elements present.
c173536
// Anyp tests an Enumerable to see if there are any elements present that meet a criteria.
c173537
// AsEnumerable allows for easy conversion of a slice to a re-usable Enumerable object.
c173538
// First retrieves just the first item in the list, or returns an error if there are no elements in the array.
c173539
// Merge takes the results of this Enumerator and others, and funnels them into // a single Enumerator. The order of in which they will be combined is non-deterministic.
c173540
// ParallelSelect creates an Enumerable which will use all logically available CPUs to // execute a Transform.
c173541
// ParallelSelect will execute a Transform across all logical CPUs available to the current process.
c173542
// Reverse returns items in the opposite order it encountered them in.
c173543
// Select creates a reusable stream of transformed values.
c173544
// Select iterates over a list and returns a transformed item.
c173545
// SelectMany allows for unfolding of values.
c173546
// SelectMany allows for flattening of data structures.
c173547
// Single retreives the only element from a list, or returns nil and an error.
c173548
// Singlep retrieces the only element from a list that matches a criteria. If // no match is found, or two or more are found, `Singlep` returns nil and an // error.
c173549
// Skip creates a reusable stream which will skip the first `n` elements before iterating // over the rest of the elements in an Enumerable.
c173550
// splitN creates N Enumerators, each will be a subset of the original Enumerator and will have // distinct populations from one another.
c173551
// Take retreives just the first `n` elements from an Enumerable.
c173552
// Take retreives just the first 'n' elements from an Enumerator.
c173553
// TakeWhile creates a reusable stream which will halt once some criteria is no longer met.
c173554
// TakeWhile continues returning items as long as 'criteria' holds true.
c173555
// Tee creates two Enumerators which will have identical contents as one another.
c173556
// ToSlice places all iterated over values in a Slice for easy consumption.
c173557
// Where creates a reusable means of filtering a stream.
c173558
// Where iterates over a list and returns only the elements that satisfy a // predicate.
c173559
// ReleaseBuffer returns a buffer to the pool to be re-used.
c173560
// NewStack instantiates a new FILO structure.
c173561
// Enumerate peeks at each element in the stack without mutating it.
c173562
// IsEmpty tests the Stack to determine if it is populate or not.
c173563
// Push adds an entry to the top of the Stack.
c173564
// Pop returns the entry at the top of the Stack then removes it.
c173565
// Peek returns the entry at the top of the Stack without removing it.
c173566
// Size returns the number of entries populating the Stack.
c173567
// NewLinkedList instantiates a new LinkedList with the entries provided.
c173568
// AddBack creates an entry in the LinkedList that is logically at the back of the list.
c173569
// Enumerate creates a new instance of Enumerable which can be executed on.
c173570
// Get finds the value from the LinkedList. // pos is expressed as a zero-based index begining from the 'front' of the list.
c173571
// IsEmpty tests the list to determine if it is populate or not.
c173572
// Length returns the number of elements present in the LinkedList.
c173573
// PeekBack returns the entry logicall stored at the back of the list without removing it.
c173574
// PeekFront returns the entry logically stored at the front of this list without removing it.
c173575
// RemoveFront returns the entry logically stored at the front of this list and removes it.
c173576
// RemoveBack returns the entry logically stored at the back of this list and removes it.
c173577
// Sort rearranges the positions of the entries in this list so that they are // ascending.
c173578
// Sorta rearranges the position of string entries in this list so that they // are ascending.
c173579
// Sorti rearranges the position of integer entries in this list so that they // are ascending.
c173580
// String prints upto the first fifteen elements of the list in string format.
c173581
// Swap switches the positions in which two values are stored in this list. // x and y represent the indexes of the items that should be swapped.
c173582
// merge takes two sorted lists and merges them into one sorted list. // Behavior is undefined when you pass a non-sorted list as `left` or `right`
c173583
// split breaks a list in half.
c173584
// Add places an item at the back of the Queue.
c173585
// Enumerate peeks at each element of this queue without mutating it.
c173586
// IsEmpty tests the Queue to determine if it is populate or not.
c173587
// Length returns the number of items in the Queue.
c173588
// Next removes and returns the next item in the Queue.
c173589
// Peek returns the next item in the Queue without removing it.
c173590
// ToSlice converts a Queue into a slice.
c173591
// EnableVirtualTerminalProcessing configures the terminal to accept ANSI // sequences. This is a no-op for all operating systems other than Windows.
c173592
// unquote the input. If possible the unquoted value points to the same // backing array as input. Otherwise it points to buf. The remainder is // the unused portion of buf.
c173593
// countScalars returns the count of items in input up to but // not including the first non-scalar item. A scalar is a single // value item, ie not a keyvalser.
c173594
// IsTerminal returns true if the writer is a terminal.
c173595
// Add appends an entry to the logical end of the List.
c173596
// AddAt injects values beginning at `pos`. If multiple values // are provided in `entries` they are placed in the same order // they are provided.
c173597
// Enumerate lists each element present in the collection
c173598
// Get retreives the value stored in a particular position of the list. // If no item exists at the given position, the second parameter will be // returned as false.
c173599
// IsEmpty tests to see if this List has any elements present.