Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 164 for gofmt (0.04 sec)

  1. src/cmd/gofmt/testdata/tabs.input

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //gofmt
    
    package main
    
    var _ = []struct{
    	S       string
    	Integer int
    }{
    	{
    		S: "Hello World",
    		Integer: 42,
    	},
    	{
    		S: "\t",
    		Integer: 42,
    	},
    	{
    		S: "	", // an actual <tab>
    		Integer: 42,
    	},
    	{
    		S: `	`, // an actual <tab>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 19:22:49 UTC 2022
    - 449 bytes
    - Viewed (0)
  2. src/go/doc/comment/testdata/code2.txt

    -- input --
    Text.
    
    	A tab-indented
    	(no, not eight-space indented)
    	code block and haiku.
    
    More text.
    -- gofmt --
    Text.
    
    	A tab-indented
    	(no, not eight-space indented)
    	code block and haiku.
    
    More text.
    -- markdown --
    Text.
    
    	A tab-indented
    	(no, not eight-space indented)
    	code block and haiku.
    
    More text.
    -- html --
    <p>Text.
    <pre>A tab-indented
    (no, not eight-space indented)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:47 UTC 2022
    - 423 bytes
    - Viewed (0)
  3. src/cmd/fix/main.go

    	}
    	fmt.Fprintf(os.Stderr, "%s: fixed %s\n", filename, fixlog.String()[1:])
    
    	// Print AST.  We did that after each fix, so this appears
    	// redundant, but it is necessary to generate gofmt-compatible
    	// source code in a few cases. The official gofmt style is the
    	// output of the printer run on a standard AST generated by the parser,
    	// but the source we generated inside the loop above is the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. src/go/doc/comment/testdata/code5.txt

    -- input --
    L1
    L2
    L3
    L4
    L5
    - L6 {
    	L7
    }
    L8
    -- gofmt --
    L1
    L2
    L3
    L4
    L5
      - L6 {
        L7
        }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 06 20:47:52 UTC 2022
    - 96 bytes
    - Viewed (0)
  5. src/go/doc/comment/testdata/list4.txt

    -- input --
    Text.
      1. List
    2. Not indented, not a list.
      3. Another list.
    
    -- gofmt --
    Text.
     1. List
    
    2. Not indented, not a list.
     3. Another list.
    
    -- text --
    Text.
     1. List
    
    2. Not indented, not a list.
     3. Another list.
    
    -- markdown --
    Text.
    
     1. List
    
    2\. Not indented, not a list.
    
     3. Another list.
    
    -- html --
    <p>Text.
    <ol>
    <li>List
    </ol>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:48 UTC 2022
    - 421 bytes
    - Viewed (0)
  6. src/go/doc/comment/testdata/quote.txt

    -- input --
    Doubled single quotes like `` and '' turn into Unicode double quotes,
    but single quotes ` and ' do not.
    Misplaced markdown fences ``` do not either.
    -- gofmt --
    Doubled single quotes like “ and ” turn into Unicode double quotes,
    but single quotes ` and ' do not.
    Misplaced markdown fences ``` do not either.
    -- text --
    Doubled single quotes like “ and ” turn into Unicode double quotes, but single
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 06 19:06:16 UTC 2022
    - 656 bytes
    - Viewed (0)
  7. src/cmd/go/testdata/mod/golang.org_toolchain_v0.0.1-go1.999testmod.darwin-arm64.txt

    -- .mod --
    module golang.org/toolchain
    -- .info --
    {"Version":"v0.0.1-go1.999testmod.darwin-arm64"}
    -- go.mod --
    module golang.org/toolchain
    -- bin/go --
    #!/bin/sh
    echo go1.999testmod here!
    -- bin/gofmt --
    echo i am unused
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 13:19:02 UTC 2023
    - 300 bytes
    - Viewed (0)
  8. src/cmd/go/testdata/mod/golang.org_toolchain_v0.0.1-go1.999testmod.freebsd-386.txt

    -- .mod --
    module golang.org/toolchain
    -- .info --
    {"Version":"v0.0.1-go1.999testmod.freebsd-386"}
    -- go.mod --
    module golang.org/toolchain
    -- bin/go --
    #!/bin/sh
    echo go1.999testmod here!
    -- bin/gofmt --
    echo i am unused
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 13:19:02 UTC 2023
    - 298 bytes
    - Viewed (0)
  9. src/cmd/go/testdata/mod/golang.org_toolchain_v0.0.1-go1.999testmod.illumos-amd64.txt

    -- .mod --
    module golang.org/toolchain
    -- .info --
    {"Version":"v0.0.1-go1.999testmod.illumos-amd64"}
    -- go.mod --
    module golang.org/toolchain
    -- bin/go --
    #!/bin/sh
    echo go1.999testmod here!
    -- bin/gofmt --
    echo i am unused
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 13:19:02 UTC 2023
    - 302 bytes
    - Viewed (0)
  10. src/cmd/go/testdata/mod/golang.org_toolchain_v0.0.1-go1.999testmod.ios-amd64.txt

    -- .mod --
    module golang.org/toolchain
    -- .info --
    {"Version":"v0.0.1-go1.999testmod.ios-amd64"}
    -- go.mod --
    module golang.org/toolchain
    -- bin/go --
    #!/bin/sh
    echo go1.999testmod here!
    -- bin/gofmt --
    echo i am unused
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 13:19:02 UTC 2023
    - 294 bytes
    - Viewed (0)
Back to top