text
stringlengths
8.57k
38.1k
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/config/filter/fault/v2/fault.proto package envoy_config_filter_fault_v2 import ( fmt "fmt" _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/envoyproxy/go-control-plane/envoy/annotations" _type "github.com/envoyproxy/go-control-plane/envoy...
/* * Tencent is pleased to support the open source community by making 蓝鲸 available. * Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the Li...
// Copyright (c) 2016-2018 Tigera, Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/services/google_ads_field_service.proto package services import ( context "context" fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" resources "google.golang.org/genproto/googleapis/ads/googleads/v1/resources" _ "...
/* * // Copyright (c) 2018 Cisco and/or its affiliates. * // * // Licensed under the Apache License, Version 2.0 (the "License"); * // you may not use this file except in compliance with the License. * // You may obtain a copy of the License at: * // * // http://www.apache.org/licenses/LICENSE-2.0 * // * /...
// Copyright 2013 The Ebiten Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
package exchange import ( "encoding/json" "errors" "fmt" "github.com/open-horizon/anax/cli/cliconfig" "github.com/open-horizon/anax/cli/cliutils" "github.com/open-horizon/anax/cli/plugin_registry" "github.com/open-horizon/anax/containermessage" "github.com/open-horizon/anax/exchange" "github.com/open-horizon/...
// // Copyright © 2021 Uncharted Software Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ap...
package compiler // This file lowers goroutine pseudo-functions into coroutines scheduled by a // scheduler at runtime. It uses coroutine support in LLVM for this // transformation: https://llvm.org/docs/Coroutines.html // // For example, take the following code: // // func main() { // go foo() // ...
/* ipp-usb - HTTP reverse proxy, backed by IPP-over-USB connection to device * * Copyright (C) 2020 and up by <NAME> (<EMAIL>) * See LICENSE for license terms and conditions * * USB low-level I/O. Cgo implementation on a top of libusb */ package main import ( "errors" "sync" "sync/atomic" "time" "unsafe" )...
// Copyright 2017 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.md file. package main import ( "bytes" "context" "crypto/md5" "encoding/hex" "encoding/json" "fmt" "go/ast" "go/parser" "go/token" "io" "io/ioutil" "os" ...
/* Copyright 2019 The Vitess Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
// Copyright 2014 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. // The gitmirror binary watches the specified Gerrit repositories for // new commits and syncs them to GitHub. // // It also serves tarballs over HTTP for the b...
package variables import ( "bytes" "fmt" "strings" "sync/atomic" "github.com/npillmayer/gorgo/runtime" "github.com/npillmayer/pmmp" "github.com/npillmayer/schuko/tracing" ) // tracer traces with key 'pmmp.grammar'. func tracer() tracing.Trace { return tracing.Select("pmmp.grammar") } // === Variable Type De...
package google import ( "fmt" "strings" "yunion.io/x/pkg/errors" "yunion.io/x/pkg/utils" "yunion.io/x/onecloud/pkg/cloudprovider" ) type SUrlMap struct { SResourceBase CreationTimestamp string `json:"creationTimestamp"` HostRules []HostRule `json:"hostRules"` PathMatchers []PathMatc...
package prefcode import ( "errors" "fmt" "math" "sort" "strconv" "strings" "unicode/utf8" ) // FAILURE is a global constant for a failure. const FAILURE = -1 /* PrefCode An interface built specifically for the type prefixCode. prefixCode:: Has: alphabet []rune: The alphabet is ordered by natural rune order...
package broker import ( "context" "database/sql" "encoding/json" "errors" "fmt" "os" "os/signal" "strings" "syscall" "time" "github.com/lib/pq" "github.com/golang/glog" _ "github.com/lib/pq" osb "github.com/pmorie/go-open-service-broker-client/v2" ) /* TODO: Add logging, levels 3 and 4 */ const plans...
package main import ( "bondmachine" "encoding/binary" "encoding/json" "errors" "etherbond" "flag" "fmt" "io/ioutil" "log" "math/rand" "net" "os" "procbuilder" "simbox" "sort" "strconv" "strings" "time" "udpbond" ) type string_slice []string func (i *string_slice) String() string { return fmt.Spri...
//docker and swarm handler // package handler import ( "bytes" "encoding/json" "fmt" "io/ioutil" "net/http" "net/http/httputil" "strconv" "strings" "time" "auth" // my auth package "conf" // my conf package "httphelper" //my httphelper package "github.com/golang/glog" ) // supported docker ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: Query.proto package proto import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-ti...
// Copyright 2018 The LUCI Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: extension/validation/validation.proto package validation import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" ) // Reference imports to suppress errors if they are not ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.17.3 // source: user_message.proto package proto import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "syn...
// Copyright 2016-2018, Pulumi Corporation. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
package ros import ( "encoding/json" "fmt" "math/rand" "net" "net/http" "net/url" "os" "os/signal" "path/filepath" "reflect" "strconv" "strings" "sync" "time" "github.com/asimovsecurity/rosgo/xmlrpc" "github.com/pkg/errors" "github.com/rs/zerolog" ) const ( //APIStatusError is an API call which ret...
// Copyright 2015/2016 syzkaller project authors. All rights reserved. // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. package prog import ( "bytes" "fmt" "math" "math/rand" "strings" "sync" "github.com/google/syzkaller/ifuzz" "github.com/google/syzkaller/sys...
package message import ( "bytes" "io" "sort" "strconv" "testing" "github.com/stretchr/testify/require" pb "go.gazette.dev/core/broker/protocol" ) func TestSequencerRingAddAndEvict(t *testing.T) { var ( seq = NewSequencer(nil, 5) generate = newTestMsgGenerator() A, B = NewProducerID(), NewProdu...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: common/policies.proto package common import ( fmt "fmt" proto "github.com/golang/protobuf/proto" msp "github.com/hyperledger/fabric/protos/msp" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal v...
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: proto/broker.proto package broker import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runti...
/* Copyright 2018 Google, Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in...
// +build windows,npm package network /* //! These includes are needed to use constants defined in the ddnpmapi #include <WinDef.h> #include <WinIoCtl.h> //! Defines the objects used to communicate with the driver as well as its control codes #include "ddnpmapi.h" #include <stdlib.h> */ import "C" import ( "encodin...
/* * Copyright 2018 InfAI (CC SES) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
package config import ( "net/http" ) // Config holds the entire configuration type Config struct { Projects Projects `json:"projects" yaml:"projects" mapstructure:"projects"` // The key here is the project id SSL *SSL `json:"ssl" yaml:"ssl" mapstructure:"ssl"` ClusterConfi...
package main import ( "encoding/json" "flag" "fmt" "math/rand" "os" "runtime/debug" "sort" "time" log "github.com/Sirupsen/logrus" "github.com/coreos/etcd/client" "github.com/streadway/amqp" "golang.org/x/net/context" "gopkg.in/mgo.v2" "github.com/pasqualesalza/amqpga/communication" ...
package skymodules import ( "bytes" "encoding/json" "fmt" "io" "mime" "mime/multipart" "net/http" "net/textproto" "os" "path/filepath" "strings" "github.com/aead/chacha20/chacha" "gitlab.com/NebulousLabs/errors" "gitlab.com/SkynetLabs/skyd/build" "gitlab.com/SkynetLabs/skyd/skykey" "go.sia.tech/siad/c...
package jsonrpc import ( "encoding/hex" "encoding/json" "io/ioutil" "net/http" "os" "reflect" "github.com/lbryio/lbry.go/v2/extras/errors" "github.com/lbryio/lbry.go/v2/stream" schema "github.com/lbryio/lbry.go/v2/schema/stake" lbryschema "github.com/lbryio/types/v2/go" "github.com/shopspring/decimal" ) ...
package pkg import ( "bytes" "context" "crypto/md5" "crypto/sha256" "encoding/hex" "encoding/json" "fmt" "io" "io/ioutil" "os" "runtime" "strconv" "strings" "sync" "time" "github.com/google/uuid" "github.com/gophercloud/gophercloud" "github.com/gophercloud/gophercloud/openstack/blockstorage/extensio...
package api import ( "errors" "fmt" stdio "io" "io/ioutil" "math" "math/rand" "os" "sort" "strconv" s "strings" "time" "github.com/elastic/hey-apm/compose" "github.com/elastic/hey-apm/output" "github.com/elastic/hey-apm/server/api/io" "github.com/elastic/hey-apm/server/strcoll" "github.com/elastic/hey...
// (c) <NAME>. Licensed under the BSD license (see LICENSE). package de import ( "testing" "time" "github.com/Tamh/cal/v2" ) func d(y, m, d int) time.Time { return time.Date(y, time.Month(m), d, 0, 0, 0, 0, cal.DefaultLoc) } func TestHolidays(t *testing.T) { tests := []struct { h *cal.Holiday y ...
package dpn import ( "archive/tar" "encoding/json" "fmt" "github.com/APTrust/bagman/bagman" "github.com/nsqio/go-nsq" "os" "path/filepath" "strings" "sync" "time" ) // Packager creates DPN bags from APTrust IntellectualObjects // through the following steps: // // 1. Fetch all data files from S3. // 2. Bui...
// // Package - transpiled by c4go // // If you have found any issues, please raise an issue at: // https://github.com/Konstantin8105/c4go/ // package main import ( "bytes" "fmt" "io/ioutil" ) // appname - transpiled function from GOPATH/src/github.com/Konstantin8105/text2pdf/text2pdf.c:41 // //This ugly, sparse...
/* Copyright 2021 Contributors to the EdgeNet project. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
/* * GoScans, a collection of network scan modules for infrastructure discovery and information gathering. * * Copyright (c) Siemens AG, 2016-2021. * * This work is licensed under the terms of the MIT license. For a copy, see the LICENSE file in the top-level * directory or visit <https://opensource.org/licenses/MIT>. ...
package main import ( "database/sql" "encoding/json" "fmt" "github.com/pkg/errors" "io/ioutil" "log" "strconv" "strings" ) type UnsupportedError struct { Reason string } func (e *UnsupportedError) Error() string { return e.Reason } //retezec prevede na male pismena, odmaze podtrzika a pismena ktera nasled...
package main import ( "bufio" "bytes" "crypto/rand" "fmt" "io" "io/ioutil" "math" "net" "os" "runtime" "strconv" "strings" "time" "unicode/utf8" "github.com/google/gopacket" "github.com/google/gopacket/pcap" "github.com/mattn/go-colorable" "gopkg.in/alecthomas/kingpin.v2" ) var ( app = kingpi...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: persistent_msgs.proto package pvtdatastorage import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // T...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: github.com/container-object-storage-interface/spec/cosi.proto package cosi import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" _ "github.com/golang/protobuf/ptype...
package main import ( "os" "io" "fmt" "bytes" "strings" _ "encoding/hex" _ "golang.org/x/crypto/sha3" "encoding/binary" "github.com/ethereum/go-ethereum/common" _ "github.com/ethereum/go-ethereum/crypto" _ "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethe...
// Copyright 2014 The Cockroach Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
package myqlib import ( `bytes` `fmt` `sort` `strconv` `strings` `time` ) // Time Columns var ( Timestamp_col Col = NewFuncCol(`time`, `Time data was printed`, 8, func(state *MyqState, c Col) chan string { ch := make(chan string, 1) defer close(ch) ch <- fit_string(time.Now().Format(`15:04:05`), c.W...
package goloader import ( "encoding/binary" "errors" "fmt" "runtime" "strings" "sync" "unsafe" ) // copy from $GOROOT/src/cmd/internal/objabi/reloctype.go const ( R_ADDR = 1 // R_ADDRARM64 relocates an adrp, add pair to compute the address of the // referenced symbol. R_ADDRARM64 = 3 // R_ADDROFF resolves...
// Copyright (c) 2014 The SurgeMQ Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required ...
/* Copyright 2019 The Vitess Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softw...
package cisco_telemetry_mdt import ( "bytes" "encoding/binary" "encoding/json" "fmt" "io" "net" "path" "strconv" "strings" "sync" "time" dialout "github.com/cisco-ie/nx-telemetry-proto/mdt_dialout" telemetry "github.com/cisco-ie/nx-telemetry-proto/telemetry_bis" "google.golang.org/grpc" "google.golang....
package atscfg /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * ...
// Copyright 2018 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
// Copyright (c) 2021 by library authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Implements TCG Storage Core - Session Manager and Session package core import ( "errors" "fmt" "math/rand" "time" "github.com/bluecmd/go-tcg-...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.14.0 // source: mesh/v1alpha1/kds.proto package v1alpha1 import ( context "context" v3 "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3" grpc "google.golang.org/grpc" codes "google.golang...
// 获取财务分析现金流量表数据 package eastmoney import ( "context" "fmt" "strings" "time" "github.com/axiaoxin-com/goutils" "github.com/axiaoxin-com/logging" "go.uber.org/zap" ) // CashflowData 现金流量数据 type CashflowData struct { Secucode string `json:"SECUCODE"` SecurityCode string...
/* Copyright © 2020 Red Hat, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: cloudprovider/cloudfoundry.proto package cloudprovider import ( proto "github.com/golang/protobuf/proto" client "github.com/spinnaker/kleat/api/client" protoreflect "google.golang.org/protob...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: predict.proto package ml_serving import ( fmt "fmt" proto "github.com/golang/protobuf/proto" framework "github.com/kuberlab/tfservable-proxy/pkg/tensorflow/core/framework" math "math" ) // Reference imports to suppress errors if they are not otherwise u...
// Keep in sync with agent/pkg/api/types.go package api import ( "strings" "time" "github.com/google/uuid" ) type FirmwareError string const ( NoError FirmwareError = "" UnknownError FirmwareError = "unkn" NoPermission FirmwareError = "no-perm" NoResponse FirmwareError = "no-resp" NotImplemen...
/* Copyright 2018 Adobe All Rights Reserved. NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms of the Adobe license agreement accompanying it. If you have received this file from a source other than Adobe, then your use, modification, or distribution of it requires the pri...
// The MIT License // // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limit...
// Copyright 2015 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
// ============================================================================= // PROJ: pimmp // AUTH: ardnew // DATE: 01 Jan 2019 // FILE: browser.go // ----------------------------------------------------------------------------- // // DESCRIPTION // based on tview.List, this implements all methods of the t...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: pkg/proto/configuration/bb_browser/bb_browser.proto package bb_browser import ( auth "github.com/buildbarn/bb-storage/pkg/proto/configuration/auth" blobstore "github.com/buildbarn/bb-storage/...
// Copyright 2015 The Cockroach Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
package twirp import ( "bytes" "context" "crypto/sha256" "encoding/hex" "encoding/json" "fmt" "hash" "io" "os" "path" "path/filepath" "strings" "sync/atomic" "github.com/ngld/knossos/packages/api/client" "github.com/ngld/knossos/packages/api/common" "github.com/ngld/knossos/packages/libarchive" "gith...
// Copyright 2018 Otis Elevator Company. All rights reserved. // Use of this source code is govered by the MIT license which // can be found in the LICENSE file. // Author: <NAME>: <EMAIL> // Otis udp_rx software has been designed to utilize information // security technology described in the Category 5 – Part 2 of t...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: mixer/v1/config/client/api_spec.proto package client import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.I...
// Copyright (c) 2016 <NAME>, Inc. // Use of this source code is governed by the Apache License 2.0 // that can be found in the COPYING file. // qparse is the shared memory log parser for the qlog quantumfs subsystem package main import ( "crypto/md5" "encoding/binary" "encoding/gob" "errors" "fmt" "io" "math"...
package upgrade import ( "bytes" "context" "encoding/json" "errors" "fmt" "io" "sort" "strings" "text/tabwriter" "github.com/blang/semver" "github.com/spf13/cobra" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" "k8s.io/cli-r...
package translation import ( "errors" "fmt" "github.com/Azure/azure-container-networking/npm/pkg/dataplane/ipsets" "github.com/Azure/azure-container-networking/npm/pkg/dataplane/policies" "github.com/Azure/azure-container-networking/npm/util" networkingv1 "k8s.io/api/networking/v1" metav1 "k8s.io/apimachinery/...
package aws import ( "errors" "fmt" "log" "strings" "time" "os" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/client" "github.com/aws/aws-sdk-go/aws/ec2metadata" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/acm" "github.com/aws/aws-sdk-go/service/acm/acmifac...
// Copyright 2018 The Cockroach Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
// Copyright 2014 The gocui 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 gocui import ( "bytes" "errors" "io" "strings" "sync" "unicode/utf8" "github.com/mattn/go-runewidth" ) // Constants for overlapping edges c...
package tris import ( "encoding/binary" "fmt" "github.com/fvbock/trie" "sort" "strings" ) const ( COMMAND_FLAG_READ = 1 COMMAND_FLAG_WRITE = 2 COMMAND_FLAG_ADMIN = 4 COMMAND_REPLY_EMPTY = 0 COMMAND_REPLY_SINGLE = 1 COMMAND_REPLY_MULTI = 2 // COMMAND_REPLY_NONE = 3 COMMAND_OK = 0 COMMAND_FAIL = ...
// Configuration proto for ResourceDiscovery (rds) server. // Example config: // // provider { // id: "gcp" // gcp_config { // project_id: 'test-project-id' // gce_instances {} // forwarding_rules {} // } // } // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // ...
/* Copyright cloudscale.ch Copyright 2018 DigitalOcean Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
// Copyright 2009 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 eval import "testing" var atLeastOneDecl = "at least one new variable must be declared" var stmtTests = []test{ // Short declarations Val1("x := i...
package objects import ( "fmt" "github.com/bulutistan/go-sophos/sophos" ) // Dhcp is a generated struct representing the Sophos Dhcp Endpoint // GET /api/nodes/dhcp type Dhcp struct { Relay struct { DhcpServer string `json:"dhcp_server"` Interfaces []interface{} `json:"interfaces"` Status int64 ...
package servicesync import ( "context" "encoding/json" coreErrors "errors" "fmt" "sort" "time" mcv1 "q42/mc-robot/pkg/apis/mc/v1" "q42/mc-robot/pkg/datasource" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels" ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: peer/collection.proto package peer import ( fmt "fmt" common "github.com/Yunpeng-J/fabric-protos-go/common" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Mars...
// Copyright 2016 Yahoo Inc. // Licensed under the terms of the Apache license. Please see LICENSE.md file distributed with this work for terms. package main // // export and RDL schema to Swagger 2.0 (http://swagger.io) // import ( "encoding/json" "flag" "fmt" "github.com/ardielle/ardielle-go/rdl" "github.com/...
// The MIB module for IGMP Management. package igmp_std_mib import ( "fmt" "github.com/CiscoDevNet/ydk-go/ydk" "github.com/CiscoDevNet/ydk-go/ydk/types" "github.com/CiscoDevNet/ydk-go/ydk/types/yfilter" "github.com/CiscoDevNet/ydk-go/ydk/models/cisco_ios_xe" "reflect" ) func init() { ydk.Y...
// Copyright 2012 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 ext2 implements read-only access to EXT2 file systems. package ext2 import ( "bytes" "encoding/binary" "fmt" "io" "os" "reflect" "strconv" ...
// Copyright 2015 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
// Copyright (C) 2011 <NAME> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed ...
package printers import ( "fmt" "sort" "strings" "time" appsv1 "k8s.io/api/apps/v1" corev1 "k8s.io/api/core/v1" eventsv1 "k8s.io/api/events/v1" policyv1 "k8s.io/api/policy/v1" storagev1 "k8s.io/api/storage/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" unstructuredv1 "k8s.io/apimachinery/pkg/apis/meta/v...
package parquet import ( "fmt" "math" "reflect" "strconv" "strings" "sync" "github.com/google/uuid" "github.com/segmentio/parquet-go/compress" "github.com/segmentio/parquet-go/deprecated" "github.com/segmentio/parquet-go/encoding" ) // Schema represents a parquet schema created from a Go value. // // Schem...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/api/v2/cluster/circuit_breaker.proto package envoy_api_v2_cluster import ( fmt "fmt" core "github.com/cilium/proxy/go/envoy/api/v2/core" _type "github.com/cilium/proxy/go/envoy/type" _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/envoy...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: mpc/learners/linear_reg_vl/linear_reg_vl.proto package linear_reg_vl import ( fmt "fmt" common "github.com/PaddlePaddle/PaddleDTX/dai/protos/common" mpc "github.com/PaddlePaddle/PaddleDTX/dai/protos/mpc" proto "github.com/golang/protobuf/proto" math "ma...
// Copyright 2016 The go-ethereum Authors // This file is part of the go-ethereum library. // // The go-ethereum library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License...
// Copyright 2021 TiKV Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
package main import ( "context" "flag" "fmt" "net/http" "net/url" "os" goruntime "runtime" "strings" "time" releasecontroller "github.com/openshift/release-controller/pkg/release-controller" _ "net/http/pprof" // until openshift/library-go#309 merges "github.com/prometheus/client_golang/prometheus" "gi...
package main import ( "encoding/json" "fmt" "os" "path/filepath" "sort" "strconv" "strings" log "github.com/Sirupsen/logrus" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/container" "github.com/opencontainers/runtime-spec/specs-go" "github.com/xeipuuv/gojsonschema" "gopkg.in/ya...