- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for Hedger (0.38 sec)
-
operator/cmd/mesh/profile-dump.go
return out2, nil } // Convert the generated YAML to pretty JSON. func yamlToPrettyJSON(yml string) (string, error) { // YAML objects are not completely compatible with JSON // objects. Let yaml.YAMLToJSON handle the edge cases and // we'll re-encode the result to pretty JSON. uglyJSON, err := yaml.YAMLToJSON([]byte(yml)) if err != nil { return "", err } var decoded any if uglyJSON[0] == '[' {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Mar 15 01:18:49 GMT 2024 - 7.1K bytes - Viewed (0) -
src/bytes/example_test.go
} show("Gopher", "Go") show("Gopher", "ph") show("Gopher", "er") show("Gopher", "Badger") // Output: // Cut("Gopher", "Go") = "", "pher", true // Cut("Gopher", "ph") = "Go", "er", true // Cut("Gopher", "er") = "Goph", "", true // Cut("Gopher", "Badger") = "Gopher", "", false } func ExampleCutPrefix() { show := func(s, sep string) {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Mar 04 15:54:40 GMT 2024 - 15K bytes - Viewed (1) -
src/archive/tar/format.go
// This matches the limit used by libarchive. maxSpecialFileSize = 1 << 20 ) // blockPadding computes the number of bytes needed to pad offset up to the // nearest block edge where 0 <= n < blockSize. func blockPadding(offset int64) (n int64) { return -offset & (blockSize - 1) } var zeroBlock block type block [blockSize]byte // Convert block to any number of formats.
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Oct 13 18:36:46 GMT 2023 - 11.3K bytes - Viewed (0) -
src/archive/tar/common.go
} pre = cur } return true } // alignSparseEntries mutates src and returns dst where each fragment's // starting offset is aligned up to the nearest block edge, and each // ending offset is aligned down to the nearest block edge. // // Even though the Go tar Reader and the BSD tar utility can handle entries // with arbitrary offsets and lengths, the GNU tar utility can only handle
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Mar 15 16:01:50 GMT 2024 - 24.7K bytes - Viewed (2)