text
stringlengths
8.57k
38.1k
/* Old School BASIC. Only numbers, so far. */ package basic import ( `fmt` `log` `math` `os` `regexp` `runtime/debug` `sort` `strconv` `strings` `time` ) const Epsilon = 0.000001 // For snapping to integer. const RecursionLimit = 1000 var Debug bool var F = fmt.Sprintf var FindKeyword = regexp.MustCom...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/api/quota.proto package serviceconfig import ( fmt "fmt" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var ...
package lintcmd import ( "crypto/sha256" "flag" "fmt" "go/build" "go/token" "io" "log" "os" "os/signal" "path/filepath" "regexp" "runtime" "runtime/pprof" "runtime/trace" "sort" "strconv" "strings" "sync" "time" "unicode" "honnef.co/go/tools/analysis/lint" "honnef.co/go/tools/config" "honnef.co...
// Generated from Python3.g4 by ANTLR 4.6. package parser // Python3 import "github.com/antlr/antlr4/runtime/Go/antlr" // BasePython3Listener is a complete listener for a parse tree produced by Python3Parser. type BasePython3Listener struct{} var _ Python3Listener = &BasePython3Listener{} // VisitTerminal is calle...
package main import ( "crypto/sha256" "fmt" "io" "io/ioutil" "os" "path" "strings" "github.com/lxc/lxd/shared" "github.com/lxc/lxd/shared/logger" log "gopkg.in/inconshreveable/log15.v2" ) const ( APPARMOR_CMD_LOAD = "r" APPARMOR_CMD_UNLOAD = "R" APPARMOR_CMD_PARSE = "Q" ) var aaPath = shared.VarPat...
/* Livepeer is a peer-to-peer global video live streaming network. The Golp project is a go implementation of the Livepeer protocol. For more information, visit the project wiki. */ package main import ( "context" "encoding/json" "errors" "flag" "fmt" "io/ioutil" "math/big" "os" "os/signal" "os/user" "pat...
package login import ( "context" "crypto/md5" "encoding/hex" "encoding/json" "errors" "fmt" "net/http" "net/url" name "github.com/fabric8-services/fabric8-auth/account" account "github.com/fabric8-services/fabric8-auth/account/repository" "github.com/fabric8-services/fabric8-auth/app" "github.com/fabric8-...
// Copyright 2014-2015 The Dename 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 agr...
// Copyright 2018 The Hugo 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 by applicable ...
// Copyright 2019 The Bytecoin developers // // 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 a...
package main import ( "context" "encoding/json" "fmt" _ "github.com/ClickHouse/clickhouse-go" "github.com/Shopify/sarama" "github.com/jmoiron/sqlx" jsoniter "github.com/json-iterator/go" "github.com/spf13/viper" "log" "math" _ "net/http/pprof" "os" "os/signal" "path/filepath" "reflect" "regexp" "runti...
// Copyright 2016 Amazon.com, Inc. or its affiliates. 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. A copy of the // License is located at // // http://aws.amazon.com/apache2.0/ // // Unless required by appl...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/config/endpoint/v3/endpoint.proto package envoy_config_endpoint_v3 import ( fmt "fmt" _ "github.com/cncf/udpa/go/udpa/annotations" v3 "github.com/envoyproxy/go-control-plane/envoy/type/v3" _ "github.com/envoyproxy/protoc-gen-validate/validate" pro...
package postgresql import ( "database/sql" "errors" "fmt" "net/url" "regexp" // register in driver. _ "github.com/jackc/pgx/stdlib" "github.com/blang/semver" "github.com/influxdata/telegraf" "github.com/influxdata/telegraf/plugins/inputs" ) type OverrideQuery struct { versionRange semver.Range query ...
// Copyright 2016 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...
package sql import ( "bytes" ) func init() { for k, v := range Symbols { Functions[k] = v } } var Symbols map[string]int = map[string]int{ "&&": AND_AND_SYM, "||": OR_OR_SYM, "<": LT, "<=": LE, "<>"...
// Copyright 2018 Blues Inc. All rights reserved. // Use of this source code is governed by licenses granted by the // copyright holder including that found in the LICENSE file. package jxpath import ( "bytes" "fmt" "math" "strconv" "strings" "unicode/utf8" ) // A DecimalFormat defines the symbols used in a F...
/* Copyright 2019 the original author or 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 w...
/* Notice: This file has been modified for Hyperledger Fabric SDK Go usage. Please review third_party pinning scripts and patches for more details. */ // Code generated by protoc-gen-go. DO NOT EDIT. // source: peer/chaincode.proto package peer import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/prot...
package traces import ( "encoding/base64" "errors" "fmt" "io/ioutil" "net" "sort" "strings" "time" "github.com/grafana/agent/pkg/logs" "github.com/grafana/agent/pkg/traces/automaticloggingprocessor" "github.com/grafana/agent/pkg/traces/noopreceiver" "github.com/grafana/agent/pkg/traces/promsdprocessor" "...
/* Copyright 2021 The Kubernetes 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, ...
package eprinttools import ( "fmt" ) // // End point documentation // func readmeDocument() string { return ` USAGE ===== ep3apid [OPTIONS] [SETTINGS_FILENAME] SYNOPSIS -------- Run an extended EPrints 3.x web API based on direct manipulation of EPrint's MySQL database(s). DETAIL ------ __ep3apid__ can be...
// Copyright (C) MongoDB, Inc. 2017-present. // // 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 package mongo import ( "context" "path" "refle...
// Copyright 2019 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. // +build ignore package main import ( "bytes" "flag" "fmt" "go/format" "io/ioutil" "log" "os" ) var debug = flag.Bool("debug", false, "") func main(...
/* Copyright 2019 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 writing, software dist...
// Package huma is a modern, simple, fast & opinionated REST API framework. // Based on OpenAPI 3 and JSON Schema so it can be used to automatically // generate an OpenAPI spec, interactive documentation, client SDKs in many // languages, and a CLI for scripting. Pronounced IPA: /'hjuːmɑ/. // // Start by creating a `Ro...
// Copyright 2015, <NAME> <<EMAIL>> // See the LICENSE file for more details. package cubez import ( m "github.com/tbogdala/cubez/math" ) // Collider is an interface for collision primitive objects to make calculating collisions // amongst a heterogenous set of objects easier. // // This interface can be used in co...
/* Copyright 2019 The Ceph-CSI 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, so...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/common/asset_types.proto package common import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" enums "google.golang.org/genproto/googleapis/ads/googleads/v3/...
// Copyright 2019 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, ...
// +build linux package libpod import ( "bytes" "fmt" "io" "io/ioutil" "net" "os" "os/exec" "path/filepath" "strconv" "strings" "syscall" "time" "github.com/containers/podman/v3/pkg/errorhandling" "github.com/containers/podman/v3/pkg/rootlessport" "github.com/containers/podman/v3/pkg/servicereaper" "...
package writer import ( "context" "fmt" "strconv" "time" "github.com/algorand/go-algorand/data/basics" "github.com/algorand/go-algorand/data/bookkeeping" "github.com/algorand/go-algorand/data/transactions" "github.com/algorand/go-algorand/ledger/ledgercore" "github.com/algorand/go-algorand/protocol" "github...
// Copyright 2014 The roc Author. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package rocserv import ( "context" "encoding/json" "fmt" "sort" "strconv" "strings" "sync" "sync/atomic" "time" "gitlab.pri.ibanyu.com/middleware/se...
// Internal functions for the stc library. These functions are // exported because they may be useful to application code, but // relegated to a separate package to avoid cluttering the main stc // documentation. package stcdetail import ( "fmt" "github.com/xdrpp/goxdr/xdr" "github.com/xdrpp/stc/stx" "io" "strin...
/* Main interface into OCP Build targets. This supports running via: - generic Pod with a Service Account - an OpenShift buildConfig */ package ocp import ( "context" "errors" "fmt" "io" "io/ioutil" "os" "os/exec" "os/signal" "path/filepath" "reflect" "sort" "strings" "sync" "syscall" "time" "g...
package toml import ( "fmt" "regexp" "strconv" "strings" "time" "unicode" "unicode/utf8" ) type parser struct { mapping table lx *lexer // A list of keys in the order that they appear in the TOML data. ordered []Key // A list of comments comments []*comment // the full key for the current hash i...
// Copyright (c) 2019, The Emergent Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // labra25ra runs a simple random-associator 5x5 = 25 four-layer leabra network package main import ( "fmt" "log" "math/rand" "time" "github.c...
/* Copyright 2017 The Kubernetes 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, ...
// Copyright 2021 The Chromium 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 mercadopago import ( "time" "github.com/eduardo-mior/mercadopago-sdk-go/internal/request" ) // PaymentResponse é a struct que é usada para receber os dados do request de novo pagamento do MercadoPago. type PaymentResponse struct { CollectorID int `json:"collector_id"` // Nosso ID do MercadoPago ...
// 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 raft_x // // this is an outline of the API that raft must expose to // the service (or tester). see comments below for // each of these functions for more details. // // rf = Make(...) // create a new Raft server. // rf.Start(command interface{}) (index, term, isleader) // start agreement on a new log entr...
package gocql import ( "fmt" "math/rand" "sync" "time" "github.com/klauspost/cpuid/v2" "golang.org/x/sys/cpu" ) const ( // bucketCount used for measuring latency. // each bucket represents 1/DecayPeriod amount of time. bucketCount = 64 // bucketHistoryCount is how many buckets are not the current one. bu...
package oneagent import ( "context" "encoding/json" "errors" "fmt" "hash/fnv" "net/http" "os" "reflect" "strconv" "time" dynatracev1alpha1 "github.com/Dynatrace/dynatrace-oneagent-operator/pkg/apis/dynatrace/v1alpha1" "github.com/Dynatrace/dynatrace-oneagent-operator/pkg/controller/istio" "github.com/Dyn...
// Copyright 2013 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 interp // Emulated functions that we cannot interpret because they are // external or because they use "unsafe" or "reflect" operations. import ( "m...
// Code generated by mkbuiltin.go. DO NOT EDIT. package gc import "cmd/compile/internal/types" var runtimeDecls = [...]struct { name string tag int typ int }{ {"newobject", funcTag, 4}, {"panicindex", funcTag, 5}, {"panicslice", funcTag, 5}, {"panicdivide", funcTag, 5}, {"panicmakeslicelen", funcTag, 5}, ...
/*- * Copyright (c) 2016,2017, F5 Networks, 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 l...
/* Copyright 2017 The Kubernetes 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, ...
package basedb import ( "bytes" "encoding/json" "fmt" "net" "strconv" "strings" "github.com/pkg/errors" "github.com/sirupsen/logrus" "github.com/Juniper/asf/pkg/format" "github.com/Juniper/asf/pkg/logutil" "github.com/Juniper/asf/pkg/schema" "github.com/Juniper/asf/pkg/services/baseservices" ) // UUIDCo...
// Copyright (C) MongoDB, Inc. 2017-present. // // 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 package integration import ( "testing" "time" ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/automl/v1beta1/model_evaluation.proto package automl import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" _ "google.golang.org/genproto/googleapis/api/annotations" ...
package main import ( "encoding/pem" "fmt" "net" "os" "os/exec" "strings" "syscall" "github.com/pkg/errors" "github.com/spf13/cobra" "gopkg.in/yaml.v2" "github.com/lxc/lxd/client" "github.com/lxc/lxd/lxd/cluster" "github.com/lxc/lxd/lxd/util" "github.com/lxc/lxd/shared" "github.com/lxc/lxd/shared/api"...
package main import ( "bytes" "crypto/sha256" "encoding/csv" "encoding/hex" "encoding/binary" "fmt" "math" "math/rand" "net" "net/http" "os" "strconv" "strings" "sync" "time" "github.com/DistributedClocks/GoVector/govec" "github.com/sbinet/go-python" ) type MessageData struct { Type string Sour...
package bgp // import "go.universe.tf/metallb/internal/bgp" import ( "bytes" "context" "encoding/binary" "errors" "fmt" "hash/crc32" "io" "io/ioutil" "net" "os" "reflect" "sync" "syscall" "time" "unsafe" "github.com/go-kit/kit/log" "github.com/go-kit/kit/log/level" "golang.org/x/sys/unix" ) var err...
// Copyright (c) 2019 The Decred developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package main import ( "crypto/elliptic" "fmt" "io/ioutil" "net" "os" "os/user" "path/filepath" "runtime" "sort" "strconv" "strings" "time" flags "github.com/jess...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/errors/bidding_error.proto package errors import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they are no...
/* Copyright IBM Corp. 2016 All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package endorser import ( "context" "fmt" "strconv" "time" "github.com/golang/protobuf/proto" "github.com/hyperledger/fabric/common/channelconfig" "github.com/hyperledger/fabric/common/crypto" "github.com/hyperledger/fab...
package v1alpha1 import ( catalog "github.com/metaprov/modelaapi/pkg/apis/catalog/v1alpha1" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // RecipeConditionType is the condition on the Recipe type RecipeConditionType string /// RecipeName Condition const ( RecipeReady RecipeConditionTyp...
package store import ( "context" "errors" "fmt" "math" "regexp" "sort" "strings" "sync" "time" "github.com/go-kit/kit/log" "github.com/go-kit/kit/log/level" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/prometheus/tsdb/chunkenc" "github.com/thanos-io/thanos/pkg/store/storepb" ...
package test import ( "bytes" "context" "fmt" "io/ioutil" "os" "path" "path/filepath" "strings" "sync/atomic" "time" "gopkg.in/op/go-logging.v1" "github.com/thought-machine/please/src/build" "github.com/thought-machine/please/src/core" "github.com/thought-machine/please/src/fs" "github.com/thought-mac...
// // January 2016, cisco // // Copyright (c) 2016 by cisco Systems, Inc. // All rights reserved. // // package main import ( "bytes" "encoding/hex" "encoding/json" "fmt" "io/ioutil" "regexp" "strings" "text/template" "time" "github.com/Shopify/sarama" "github.com/prometheus/client_golang/prometheus" log...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/protobuf/struct.proto package structpb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" prototype "google.golang.org/protobuf/reflect/prototype" protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.go...
// Copyright 2020 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...
// Copyright (c) 2019 Oasis Labs Inc. <<EMAIL>> // // 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 limitation the rights to use, copy, modify, mer...
package flatbuffers // Builder is a state machine for creating FlatBuffer objects. // Use a Builder to construct object(s) starting from leaf nodes. // // A Builder constructs byte buffers in a last-first manner for simplicity and // performance. type Builder struct { Bytes []byte minalign int vtable []UOffset...
package canvas import ( "math" ) // NOTE: implementation inspired from github.com/golang/freetype/raster/stroke.go // Capper implements Cap, with rhs the path to append to, halfWidth the half width of the stroke, // pivot the pivot point around which to construct a cap, and n0 the normal at the start of the path. /...
// Copyright 2019 Canonical Ltd. // Licensed under the LGPLv3, see LICENCE file for details. package charm import ( "encoding/base64" "fmt" "math" "path/filepath" "reflect" "strings" "github.com/juju/errors" "github.com/mohae/deepcopy" ) // ExtractBaseAndOverlayParts splits the bundle data into a base and /...
package ioctl import ( "errors" "fmt" "io" "os" "syscall" "golang.org/x/sys/unix" ) // PropWithSource repesents a prop with source type PropWithSource struct { Value interface{} `nvlist:"value"` Source string `nvlist:"source"` } type DatasetPropsWithSource map[string]PropWithSource // DatasetProps con...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/type/http_status.proto package envoy_type import ( fmt "fmt" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v2/errors/media_file_error.proto package errors import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if they are...
//此源码被清华学神尹成大魔王专业翻译分析并修改 //尹成QQ77025077 //尹成微信18510341407 //尹成所在QQ群721929980 //尹成邮箱 <EMAIL> //尹成毕业于清华大学,微软区块链领域全球最有价值专家 //https://mvp.microsoft.com/zh-cn/PublicProfile/4033620 //版权所有(c)2014-2017 BTCSuite开发者 //此源代码的使用由ISC控制 //可以在许可文件中找到的许可证。 //注意:此文件用于存放受支持的rpc命令 //一个链式服务器。 package btcjson import ( "encoding/json" ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.6.1 // source: proto/laptop_message.proto package proto import ( timestamp "github.com/golang/protobuf/ptypes/timestamp" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.gola...
package logging /* NOTE - Do not call OnErrorf for LogXXX functions, as these are usually called without regard for the error return value. */ import ( "context" "fmt" "io" "math" "os" "runtime/debug" "sync" "sync/atomic" "time" "github.com/ugorji/go-common/errorutil" "github.com/ugorji/go-common/osu...
package main import ( "errors" "fmt" "go/ast" "go/parser" "go/token" "log" "os" "path/filepath" "strings" ) /* bool int8 uint8 int16 uint16 int32 uint32 int64 uint64 int128 uint128 varint32 varuint32 float32 float64 float128 time_point time_point_sec block_timestamp_type name bytes stri...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/extensions/filters/common/fault/v3/fault.proto package envoy_extensions_filters_common_fault_v3 import ( fmt "fmt" _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/envoyproxy/go-control-plane/envoy/annotations" v3 "github.com/envoyproxy/g...
package main import ( "context" "crypto/rand" "encoding/base64" "encoding/json" "flag" "fmt" "io" "io/ioutil" "log" "net" "net/http" "os" "os/exec" "os/signal" "path/filepath" "runtime" "strings" "time" "github.com/gin-contrib/pprof" "github.com/gin-contrib/static" "github.com/gin-gonic/gin" "gi...
/* Copyright 2014 The Kubernetes 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, ...
package operator2 import ( "bytes" "encoding/json" "fmt" "io/ioutil" "net" "net/http" "os" "reflect" "strconv" "strings" "monis.app/go/openshift/controller" "monis.app/go/openshift/operator" appsv1 "k8s.io/api/apps/v1" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/ap...
// Copyright 2021 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package repo import ( "context" "fmt" "html/template" "net" "net/url" "path/filepath" "strconv" "strings" "code.gitea.io/gitea/models/db" "code.g...
/* Copyright 2014 The Kubernetes 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, ...
// Copyright 2016 Google, Inc. All rights reserved. // // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file in the root of the source // tree. package layers import ( "bytes" "encoding/binary" "fmt" "net" "github.com/graniet/gopacket" ) // DHCPOp rerprents a bo...
/* Copyright 2015 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 writing, soft...
package cmd import ( "fmt" "github.com/drud/ddev/pkg/globalconfig" "github.com/drud/ddev/pkg/nodeps" "os" "strings" "path/filepath" "github.com/drud/ddev/pkg/ddevapp" "github.com/drud/ddev/pkg/output" "github.com/drud/ddev/pkg/util" "github.com/spf13/cobra" ) // Define flags for the config command var ( ...
// Code generated by azure-service-operator-codegen. DO NOT EDIT. // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. package v1beta20201101storage import ( "github.com/Azure/azure-service-operator/v2/pkg/genruntime" "github.com/Azure/azure-service-operator/v2/pkg/genruntime/conditions" "gith...
package loadbalancer import ( "crypto/md5" "encoding/hex" "fmt" "reflect" "regexp" "sort" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/elbv2" "github.com/coreos/alb-ingress-controller/pkg/alb/listeners" "github.com/coreos/alb-ingress-cont...
package tarantool import ( "bufio" "bytes" "errors" "fmt" "io" "log" "net" "runtime" "sync" "sync/atomic" "time" "gopkg.in/vmihailenco/msgpack.v2" ) const requestsMap = 128 const ( connDisconnected = 0 connConnected = 1 connClosed = 2 ) type ConnEventKind int type ConnLogKind int const ( /...
// Copyright 2018 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...
package genclient import ( "fmt" "os" "path/filepath" "sort" "strings" "text/template" "github.com/goadesign/goa/design" "github.com/goadesign/goa/goagen/codegen" "github.com/goadesign/goa/goagen/utils" "github.com/spf13/cobra" ) // Generator is the application code generator. type Generator struct { genf...
package syncer import ( "context" "fmt" "sync" "time" "golang.org/x/sync/errgroup" syncTypes "github.com/filecoin-project/venus/pkg/chainsync/types" cbor "github.com/ipfs/go-ipld-cbor" "github.com/filecoin-project/go-state-types/big" "github.com/ipfs/go-cid" blockstore "github.com/ipfs/go-ipfs-blockstore"...
// 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 mirror repositories. // // It also serves tarballs over H...
/* Copyright 2017 Caicloud 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 by applicable law or agreed ...
/* * Datadog API for Go * * Please see the included LICENSE file for licensing information. * * Copyright 2019 by authors and contributors. */ package datadog import ( "encoding/json" "fmt" ) const ( ALERT_GRAPH_WIDGET = "alert_graph" ALERT_VALUE_WIDGET = "alert_value" CHANGE_WIDGE...
package mapper import ( "crypto/sha1" "fmt" "math" "strings" oos "github.com/kubevirt/vm-import-operator/pkg/providers/ovirt/os" logf "sigs.k8s.io/controller-runtime/pkg/log" v2vv1 "github.com/kubevirt/vm-import-operator/pkg/apis/v2v/v1beta1" outils "github.com/kubevirt/vm-import-operator/pkg/providers/ovir...
// 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. // Code generated by generate.go. DO NOT EDIT. package nistec import ( "crypto/internal/nistec/fiat" "crypto/subtle" "errors" "sync" ) var p521B, _ = new...
// Package gotpl provides a Go template for xo. package gotpl import ( "context" "embed" "fmt" "path/filepath" "strings" "text/template" "github.com/gedex/inflector" "github.com/kenshaw/snaker" "github.com/xo/xo/loader" "github.com/xo/xo/templates" xo "github.com/xo/xo/types" "golang.org/x/tools/imports" ...
// Copyright (c) 2016, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, // this list of conditions and ...
package controller import ( "bufio" "context" "errors" "fmt" "github.com/docker/docker/api/types" "github.com/docker/docker/api/types/container" "github.com/docker/docker/api/types/network" "github.com/docker/docker/client" "github.com/godbus/dbus/v5" specs "github.com/opencontainers/image-spec/specs-go/v1" ...
/* Copyright 2020 The Crossplane 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, ...
package scheduler import ( "fmt" "time" log "github.com/hashicorp/go-hclog" memdb "github.com/hashicorp/go-memdb" multierror "github.com/hashicorp/go-multierror" "github.com/hashicorp/nomad/helper/uuid" "github.com/hashicorp/nomad/nomad/structs" ) const ( // maxServiceScheduleAttempts is used to limit the nu...
package hcl import ( "encoding/json" "fmt" "io" "reflect" "regexp" "sort" "strings" kitlog "github.com/go-kit/kit/log" "github.com/cycloidio/mxwriter" "github.com/cycloidio/terracognita/errcode" "github.com/cycloidio/terracognita/log" "github.com/cycloidio/terracognita/provider" "github.com/cycloidio/te...