Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExampleNoOutput (0.17 sec)

  1. src/cmd/go/testdata/script/list_test_simple.txt

    import (
    	"fmt"
    )
    
    func ExampleSimple() {
    	fmt.Println("Test with Output.")
    
    	// Output: Test with Output.
    }
    
    func ExampleWithEmptyOutput() {
    	fmt.Println("")
    
    	// Output:
    }
    
    func ExampleNoOutput() {
    	_ = fmt.Sprint("Test with no output")
    }
    -- test_test.go --
    package testlist
    
    import (
    	"fmt"
    	"testing"
    )
    
    func TestSimple(t *testing.T) {
    	_ = fmt.Sprint("Test simple")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 856 bytes
    - Viewed (0)
Back to top