Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for exampleFuncs (1.85 sec)

  1. staging/src/k8s.io/apiserver/pkg/apis/example/fuzzer/fuzzer.go

    			if err != nil {
    				panic(fmt.Sprintf("Failed to encode object: %v", err))
    			}
    
    			// Set the bytes field on the RawExtension
    			r.Raw = bytes
    		},
    	}
    }
    
    func exampleFuncs(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    		func(s *example.PodSpec, c fuzz.Continue) {
    			c.FuzzNoCustom(s)
    			// has a default value
    			ttl := int64(30)
    			if c.RandBool() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 01 19:31:12 UTC 2018
    - 3K bytes
    - Viewed (0)
  2. src/flag/example_func_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package flag_test
    
    import (
    	"errors"
    	"flag"
    	"fmt"
    	"net"
    	"os"
    )
    
    func ExampleFunc() {
    	fs := flag.NewFlagSet("ExampleFunc", flag.ContinueOnError)
    	fs.SetOutput(os.Stdout)
    	var ip net.IP
    	fs.Func("ip", "`IP address` to parse", func(s string) error {
    		ip = net.ParseIP(s)
    		if ip == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:44:21 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  3. src/go/doc/example_test.go

    func ExampleType1_foo_suffix()    {}
    func ExampleType1_foo_Suffix()    {} // matches Type1, instead of Type1_foo
    func Exampletype2()               {} // invalid - cannot match unexported
    
    func ExampleFunc1()               {}
    func ExampleFunc1_()              {} // invalid - suffix must start with a lower-case letter
    func ExampleFunc1_suffix()        {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 16:17:51 UTC 2022
    - 9.6K bytes
    - Viewed (0)
Back to top