- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for preformatted (0.36 sec)
-
src/log/slog/handler_test.go
attrs []Attr want string }{ { name: "no attrs", want: "INFO message", }, { name: "attrs", attrs: attrs, want: "INFO message a=1 b=two", }, { name: "preformatted", with: func(h Handler) Handler { return h.WithAttrs(preAttrs) }, attrs: attrs, want: "INFO message pre=0 a=1 b=two", }, { name: "groups", attrs: []Attr{ Int("a", 1), Group("g",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 02 13:57:53 UTC 2023 - 19.6K bytes - Viewed (0) -
src/go/doc/comment/doc.go
a top-level declaration of a package, const, func, type, or var. Go doc comment syntax is a simplified subset of Markdown that supports links, headings, paragraphs, lists (without nesting), and preformatted text blocks. The details of the syntax are documented at https://go.dev/doc/comment. To parse the text associated with a doc comment (after removing comment markers), use a [Parser]: var p comment.Parser
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 06 19:05:57 UTC 2022 - 1.3K bytes - Viewed (0) -
src/go/doc/comment/print.go
// TextPrefix is a prefix to print at the start of every line // when generating text output using the Text method. TextPrefix string // TextCodePrefix is the prefix to print at the start of each // preformatted (code block) line when generating text output, // instead of (not in addition to) TextPrefix. // If TextCodePrefix is the empty string, it defaults to TextPrefix+"\t". TextCodePrefix string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 7.6K bytes - Viewed (0) -
JavadocStyleGuide.md
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jun 06 15:43:07 UTC 2024 - 11.5K bytes - Viewed (0) -
src/go/doc/comment/parse.go
} // A Paragraph is a paragraph of text. type Paragraph struct { Text []Text } func (*Paragraph) block() {} // A Code is a preformatted code block. type Code struct { // Text is the preformatted text, ending with a newline character. // It may be multiple lines, each of which ends with a newline character. // It is never empty, nor does it start or end with a blank line.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 33.5K bytes - Viewed (0) -
src/log/slog/handler.go
state.appendNonBuiltIns(r) state.buf.WriteByte('\n') h.mu.Lock() defer h.mu.Unlock() _, err := h.w.Write(*state.buf) return err } func (s *handleState) appendNonBuiltIns(r Record) { // preformatted Attrs if pfa := s.h.preformattedAttrs; len(pfa) > 0 { s.buf.WriteString(s.sep) s.buf.Write(pfa) s.sep = s.h.attrSep() if s.h.json && pfa[len(pfa)-1] == '{' { s.sep = "" } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 18:18:13 UTC 2023 - 17.5K bytes - Viewed (0) -
src/cmd/gofmt/doc.go
By default, gofmt prints the reformatted sources to standard output. Usage: gofmt [flags] [path ...] The flags are: -d Do not print reformatted sources to standard output. If a file's formatting is different than gofmt's, print diffs to standard output. -e Print all (including spurious) errors. -l Do not print reformatted sources to standard output.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 3.2K bytes - Viewed (0) -
src/cmd/fix/main.go
goVersion = flag.String("go", "", "go language version for files") ) // enable for debugging fix failures const debug = false // display incorrectly reformatted source and exit func usage() { fmt.Fprintf(os.Stderr, "usage: go tool fix [-diff] [-r fixname,...] [-force fixname,...] [path ...]\n") flag.PrintDefaults() fmt.Fprintf(os.Stderr, "\nAvailable rewrites are:\n")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 5.4K bytes - Viewed (0) -
CONTRIBUTING.md
+ Only use spaces for indentation. + Create minimal diffs - disable on save actions like reformat source code or organize imports. If you feel the source code should be reformatted, create a separate PR for this change. + Check for unnecessary whitespace with `git diff --check` before committing.
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Sun Oct 10 09:48:27 UTC 2021 - 4.7K bytes - Viewed (0) -
cmd/global-heal.go
bucket, humanize.Ordinal(er.setIndex+1)) } disks, _, healing := er.getOnlineDisksWithHealingAndInfo(true) if len(disks) == healing { // All drives in this erasure set were reformatted for some reasons, abort healing and mark it as successful healingLogIf(ctx, errors.New("all drives are in healing state, aborting..")) return nil }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 31 14:48:50 UTC 2024 - 15.1K bytes - Viewed (0)