Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 4,301 for main2 (0.11 sec)

  1. pilot/cmd/pilot-discovery/main.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package main
    
    import (
    	"os"
    
    	"istio.io/istio/pilot/cmd/pilot-discovery/app"
    	"istio.io/istio/pkg/log"
    )
    
    func main() {
    	log.EnableKlogWithCobra()
    	rootCmd := app.NewRootCommand()
    	if err := rootCmd.Execute(); err != nil {
    		log.Error(err)
    		os.Exit(-1)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 846 bytes
    - Viewed (0)
  2. test/typeparam/absdiffimp2.dir/main.go

    // Copyright 2021 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.
    
    package main
    
    import (
    	"./a"
    	"fmt"
    )
    
    func main() {
    	if got, want := a.OrderedAbsDifference(1.0, -2.0), 3.0; got != want {
    		panic(fmt.Sprintf("got = %v, want = %v", got, want))
    	}
    	if got, want := a.OrderedAbsDifference(-1.0, 2.0), 3.0; got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 879 bytes
    - Viewed (0)
  3. test/fixedbugs/issue29612.dir/main.go

    // Do not panic on conversion to anonymous interface, which
    // is similar-looking interface types in different packages.
    
    package main
    
    import (
    	"fmt"
    
    	ssa1 "issue29612.dir/p1/ssa"
    	ssa2 "issue29612.dir/p2/ssa"
    )
    
    func main() {
    	v1 := &ssa1.T{}
    	_ = v1
    
    	v2 := &ssa2.T{}
    	ssa2.Works(v2)
    	ssa2.Panics(v2) // This call must not panic
    
    	swt(v1, 1)
    	swt(v2, 2)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 25 14:19:25 UTC 2020
    - 845 bytes
    - Viewed (0)
  4. test/typeparam/minimp.dir/main.go

    // Copyright 2021 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.
    
    package main
    
    import (
    	"./a"
    	"fmt"
    )
    
    func main() {
    	const want = 2
    	if got := a.Min[int](2, 3); got != want {
    		panic(fmt.Sprintf("got %d, want %d", got, want))
    	}
    
    	if got := a.Min(2, 3); got != want {
    		panic(fmt.Sprintf("want %d, got %d", want, got))
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 855 bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/swig/testdata/stdio/main.go

    // This file is here just to cause problems.
    // main.swig turns into a file also named main.go.
    // Make sure cmd/go keeps them separate
    // when both are passed to cgo.
    
    package main
    
    //int F(void) { return 1; }
    import "C"
    import (
    	"fmt"
    	"os"
    )
    
    func F() int { return int(C.F()) }
    
    func main() {
    	if x := int(C.F()); x != 1 {
    		fatal("x = %d, want 1", x)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:07 UTC 2023
    - 975 bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/samples/templates/build-src-plugin-java-module-transform/application/src/main/java/org/gradle/sample/app/Main.java

    import org.apache.commons.cli.DefaultParser;
    import org.apache.commons.cli.Options;
    import org.apache.commons.lang3.StringUtils;
    import org.gradle.sample.app.data.Message;
    
    public class Main {
    
        public static void main(String[] args) throws Exception {
            Options options = new Options();
            options.addOption("json", true, "data to parse");
            options.addOption("debug", false, "prints module infos");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  7. main.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package main // import "github.com/minio/minio"
    
    import (
    	"os"
    
    	// MUST be first import.
    	_ "github.com/minio/minio/internal/init"
    
    	minio "github.com/minio/minio/cmd"
    )
    
    func main() {
    	minio.Main(os.Args)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Oct 25 00:44:15 UTC 2022
    - 973 bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/samples/build-organization/composite-builds/hierarchical-multirepo/groovy/app/src/main/java/org/sample/myapp/Main.java

    package org.sample.myapp;
    
    import org.sample.numberutils.Numbers;
    import org.sample.stringutils.Strings;
    
    public class Main {
    
        public static void main(String... args) {
            new Main().printAnswer();
        }
    
        public void printAnswer() {
            String output = Strings.concat(" The answer is    ", Numbers.add(19, 23));
            System.out.println(output);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 373 bytes
    - Viewed (0)
  9. src/cmd/link/testdata/testIndexMismatch/main.go

    // Copyright 2020 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.
    
    package main
    
    import "a"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 24 17:48:07 UTC 2020
    - 208 bytes
    - Viewed (0)
  10. test/typeparam/issue48454.dir/main.go

    // Copyright 2021 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.
    
    package main
    
    import "./b"
    
    func main() {
    	var _ b.Session
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 221 bytes
    - Viewed (0)
Back to top