text
stringlengths
5.51k
28.1k
// Copyright 2015 PingCAP, 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 i...
// Copyright 2020 IBM Corp. // // 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...
package pipeline import ( "bytes" "encoding/json" "fmt" "sort" "time" "github.com/thingnario/kapacitor/tick/ast" ) const ( // NodeTypeOf is used by all Node to identify the node duration Marshal and Unmarshal NodeTypeOf = "typeOf" // NodeID is used by all Node as a unique ID duration Marshal and Unmarshal ...
/* Copyright 2019 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 (c) 2015-2017 The Decred developers // Copyright (c) 2018-2020 The Hc developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package edwards import ( "crypto/elliptic" "math/big" "github.com/duwu/hcd/hcutil/ed25519/edwards25519" ) // TwistedEdwa...
package launcher import ( "context" "fmt" "os" "path/filepath" "strconv" "time" "github.com/influxdata/influxdb/v2/bolt" "github.com/influxdata/influxdb/v2/fluxinit" "github.com/influxdata/influxdb/v2/internal/fs" "github.com/influxdata/influxdb/v2/kit/cli" "github.com/influxdata/influxdb/v2/kit/signals" ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.13.0 // source: raft-badger.proto package raft_badger import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync...
package suretax import ( "bytes" "encoding/json" "fmt" "io/ioutil" "net/http" "sync" "time" ) type HttpClient interface { Do(req *http.Request) (*http.Response, error) } var httpClientOverride HttpClient = nil // Sets the package's http client. func SetHttpClient(client HttpClient) { httpClientOverride = c...
/* * Copyright 2019 SAP SE or an SAP affiliate company. All rights reserved. ur file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use ur file except in compliance with the License. ...
// 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. package runtime import "unsafe" const ( debugMalloc = false flagNoScan = _FlagNoScan flagNoZero = _FlagNoZero maxTinySize = _TinySize tinySizeClass =...
// Copyright (C) 2017 <NAME> // Use of this source code is governed by an AGPL-style // license that can be found in the LICENSE file. package server import ( "context" "encoding/json" "errors" "fmt" "io" "net" "net/http" "strconv" "strings" "time" tunnel "github.com/NodeFactoryIo/vedran/pkg/http-tunnel" ...
package login import ( "encoding/base64" "encoding/json" "fmt" "github.com/google/uuid" "github.com/sandertv/gophertunnel/minecraft/protocol" "golang.org/x/text/language" "net" "regexp" "strconv" "strings" ) // IdentityData contains identity data of the player logged in. It is found in one of the JWT claims...
package os import ( "context" "errors" "fmt" "io" "math" "os" "os/exec" "strings" "sync" "syscall" "time" "github.com/twitter/scoot/common/log/tags" "github.com/twitter/scoot/common/stats" "github.com/twitter/scoot/runner/execer" log "github.com/sirupsen/logrus" ) // Used for mocking memCap monitorin...
package logr import ( "bytes" "context" "errors" "fmt" "os" "sync" "time" "github.com/wiggin77/cfg" "github.com/wiggin77/merror" ) // Logr maintains a list of log targets and accepts incoming // log records. type Logr struct { tmux sync.RWMutex // target mutex targets []Target mux sync...
// Copyright 2011 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 gif implements a GIF image decoder and encoder. // // The GIF specification is at http://www.w3.org/Graphics/GIF/spec-gif89a.txt. package gif import...
/* Tencent is pleased to support the open source community by making Blueking Container Service available. Copyright (C) 2019 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...
// Copyright (c) 2017-2020 The Elastos Foundation // Use of this source code is governed by an MIT // license that can be found in the LICENSE file. // package pow import ( "encoding/binary" "errors" "fmt" "math" "math/rand" "sort" "sync" "time" "github.com/elastos/Elastos.ELA/auxpow" "github.com/elastos/E...
// Copyright 2016 The etcd 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 t...
// Copyright 2018 The Go Cloud Development Kit 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appli...
// Copyright 2018 Authors of Cilium // // 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 ...
/* * Copyright 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://www.apache.org/licenses/LICENSE-2.0 * * or in the "...
// // Copyright (C) 2020 IBM Corporation. // // Authors: // <NAME> <<EMAIL>> // <NAME> <<EMAIL>> // // 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/L...
package cloudapi_v5 import ( "context" "errors" "fmt" "io" "os" "go.uber.org/multierr" "github.com/fatih/structs" "github.com/ionos-cloud/ionosctl/commands/cloudapi-v5/completer" "github.com/ionos-cloud/ionosctl/commands/cloudapi-v5/query" "github.com/ionos-cloud/ionosctl/commands/cloudapi-v5/waiter" "git...
package start import ( "encoding/gob" "fmt" "html/template" "io/ioutil" "log" "net/http" "net/url" "strconv" "time" "code.google.com/p/xsrftoken" "github.com/google/identity-toolkit-go-client/gitkit" "github.com/gorilla/mux" "github.com/gorilla/sessions" "appengine" "appengine/datastore" "appengine/m...
package autopilot import ( "net" "sync" "sync/atomic" "github.com/btcsuite/btcd/btcec" "github.com/btcsuite/btcutil" "github.com/davecgh/go-spew/spew" "github.com/lightningnetwork/lnd/lnwire" ) // Config couples all the items that an autopilot agent needs to function. // All items within the struct MUST be po...
package main import ( "fmt" "time" "runtime" "runtime/debug" "strings" "os" "gitee.com/jntse/gotoolkit/log" "gitee.com/jntse/gotoolkit/net" "gitee.com/jntse/gotoolkit/util" "gitee.com/jntse/minehero/pbmsg" "gitee.com/jntse/minehero/server/tbl" "gitee.com/jntse/minehero/server/tbl/excel" "gitee.com/jntse...
package policies import ( "errors" "fmt" "strconv" "strings" "github.com/Azure/azure-container-networking/npm/metrics" "github.com/Azure/azure-container-networking/npm/pkg/dataplane/ioutil" "github.com/Azure/azure-container-networking/npm/util" npmerrors "github.com/Azure/azure-container-networking/npm/util/e...
package reg // Register kinds. const ( KindPseudo Kind = iota KindGP KindVector ) // Declare register families. var ( Pseudo = &Family{Kind: KindPseudo} GeneralPurpose = &Family{Kind: KindGP} Vector = &Family{Kind: KindVector} Families = []*Family{ Pseudo, GeneralPurpose, Vector, } ) v...
package pool import ( "context" "errors" "fmt" "strings" "sync" "time" apiErr "github.com/AliyunContainerService/terway/pkg/aliyun/client/errors" "github.com/AliyunContainerService/terway/pkg/logger" "github.com/AliyunContainerService/terway/pkg/metric" "github.com/AliyunContainerService/terway/pkg/tracing"...
package clui import ( xs "github.com/huandu/xstrings" term "github.com/nsf/termbox-go" "strings" "unicode" ) type attr struct { text term.Attribute back term.Attribute } type rect struct { x, y, w, h int } /* Canvas is a 'graphical' engine to draw primitives. */ type Canvas struct { width int height ...
package rivet import ( "fmt" "io" "net/http" "os" "sort" "strings" ) // Trie 是路由 patterns 的前缀树. // 请务必使用 NewTrie 设定分隔符生成对象. 否则分隔符将是 0x00 type Trie struct { Word interface{} // 用来保存应用数据 pattern string // 定值前缀或者匹配模式 parent *Trie // 父节点 childs []*Trie // 前缀子节点和模式匹配子节点 matcher Matcher /...
package proto import ( "encoding/json" "io" "net" "time" "github.com/pkg/errors" "gitlab.com/SiaPrime/SiaPrime/crypto" "gitlab.com/SiaPrime/SiaPrime/modules" "gitlab.com/SiaPrime/SiaPrime/types" "github.com/JayRama/us/hostdb" "github.com/JayRama/us/merkle" "github.com/JayRama/us/renterhost" ) // ErrInvali...
package i2c import ( "fmt" "math" "time" "github.com/eyelight/gobot" ) // CCS811DriveMode type type CCS811DriveMode uint8 // Operating modes which dictate how often measurements are being made. If 0x00 is used as an operating mode, measurements will be disabled const ( CCS811DriveModeIdle CCS811DriveMode = 0x...
/* * SPDX-License-Identifier: Apache-2.0 * Copyright 2021 The LibreGraph Authors. */ package ldif import ( "context" "encoding/base64" "errors" "fmt" "net" "os" "path/filepath" "strings" "sync/atomic" "time" "github.com/go-ldap/ldap/v3" "github.com/go-ldap/ldif" cmap "github.com/orcaman/concurrent-ma...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/maps/routes/v1/waypoint.proto package routes import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" latlng "google.golang.org/genproto/googleapis/type/latlng" ) // Reference...
package thorchain import ( "errors" "fmt" "github.com/hashicorp/go-multierror" "gitlab.com/thorchain/thornode/common" "gitlab.com/thorchain/thornode/common/cosmos" "gitlab.com/thorchain/thornode/constants" "gitlab.com/thorchain/thornode/x/thorchain/keeper" ) // nativeRuneModuleName will be empty if it is not...
// entry.go // // 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 ...
// Copyright 2020 ETH Zurich // // 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 wri...
package main import ( "context" "fmt" "html/template" "log" "net/http" "net/url" "os" "regexp" "strconv" "strings" "time" // "io/ioutil" "encoding/base64" // "path/filepath" "github.com/volatiletech/authboss" _ "github.com/volatiletech/authboss/auth" // "github.com/volatiletech/authboss/confirm" "...
// Package graphql provides a GraphQL client to the Spectator Rails API. package graphql import ( "github.com/jkao1/go-graphql" "github.com/joho/godotenv" "github.com/stuyspec/uploader/log" "github.com/stuyspec/uploader/parser/patterns" "context" "encoding/base64" "fmt" "io/ioutil" "math/rand" "net/http" ...
// Copyright 2016 Google Inc. All Rights Reserved. // This file is available under the Apache license. package codegen import ( "fmt" "math" "regexp" "time" "github.com/golang/glog" "github.com/google/mtail/internal/metrics" "github.com/google/mtail/internal/metrics/datum" "github.com/google/mtail/internal/v...
// Copyright 2016-2021 the u-root Authors. All rights reserved // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // cbmem prints out coreboot mem table information in JSON by default, // and also implements the basic cbmem -list and -console commands. // TODO: chec...
package flow import ( "errors" "fmt" "io/ioutil" "log" "os" "os/signal" "path/filepath" "reflect" "strings" "sync" "syscall" "time" "github.com/fatih/color" "github.com/google/uuid" ) type job struct { Cmd Commander UUID uuid.UUID ID string Inpu...
// Copyright 2020 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/ // // or in the "license" fil...
package nfs import ( "bytes" "encoding/json" "os/exec" "github.com/go-kit/log" "github.com/go-kit/log/level" "github.com/prometheus/client_golang/prometheus" ) var ( nfsServerOpertionsDesc = prometheus.NewDesc( "nfs_server_operations", "NFS server operations", []string{"operation"}, nil, ) ) type Ex...
package model import ( "database/sql/driver" "encoding/json" "time" "github.com/caos/logging" "github.com/lib/pq" req_model "github.com/caos/zitadel/internal/auth_request/model" "github.com/caos/zitadel/internal/domain" caos_errs "github.com/caos/zitadel/internal/errors" "github.com/caos/zitadel/internal/ev...
// Copyright 2019 The Chromium OS 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 crash contains utilties common to tests that use crash_reporter and // crash_sender. package crash import ( "context" "fmt" "io/ioutil" ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/devtools/resultstore/v2/file.proto package resultstore // import "google.golang.org/genproto/googleapis/devtools/resultstore/v2" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import wrappers "github.com/golang/pro...
package controller import ( "context" "fmt" "time" "k8s.io/apimachinery/pkg/util/uuid" "k8s.io/client-go/tools/leaderelection" "k8s.io/client-go/tools/leaderelection/resourcelock" appmeshv1beta1 "github.com/aws/aws-app-mesh-controller-for-k8s/pkg/apis/appmesh/v1beta1" "github.com/aws/aws-app-mesh-controller-...
package service import ( "context" "crypto/rand" "encoding/json" "errors" "fmt" "io/ioutil" "os" "path/filepath" "sync/atomic" "time" "github.com/ipfs/go-cid" "github.com/libp2p/go-libp2p-core/crypto" core "github.com/libp2p/go-libp2p-core/peer" "github.com/oklog/ulid/v2" "github.com/textileio/bidbot/b...
package main import ( "bytes" "context" "encoding/json" "fmt" "html/template" "io/ioutil" "net/http" "os" "os/exec" "path/filepath" "strings" "time" log "github.com/Sirupsen/logrus" "github.com/fatih/structs" "github.com/gorilla/mux" "github.com/malice-plugins/pkgs/database" "github.com/malice-plugin...
// Package pagerduty is a Go API client for both the PagerDuty v2 REST and // Events API. Most methods should be implemented, and it's recommended to use // the WithContext variant of each method and to specify a context with a // timeout. // // To debug responses from the API, you can instruct the client to capture th...
// Package p contains an HTTP Cloud Function. package p import ( "bytes" "context" "encoding/binary" "encoding/json" "fmt" "io" "log" "net/http" "strconv" "sync" "time" "cloud.google.com/go/bigtable" ) type amountsResult struct { Last24Hours map[string]map[string]float64 WithinPeriod map[s...
// The diffcalculator executable listens to the Pub/Sub topic and processes diffs based on the // messages passed in. For an overview of Pub/Sub, see https://cloud.google.com/pubsub/docs package main import ( "context" "encoding/json" "flag" "io/ioutil" "math/rand" "net/http" "path" "sync" "sync/atomic" "tim...
package compiler import ( "Interpreter/ast" "Interpreter/bytecode" "Interpreter/code" "Interpreter/errors" "Interpreter/object" "Interpreter/parser" "Interpreter/tokens" "fmt" "reflect" "strconv" ) type Compiler struct { *errors.Errors debug bool constants *ConstTable scope []CompilationS...
// +build !js // mesh-bootstrap is a separate executable for bootstrap nodes. Bootstrap nodes // will not share or receive any orders and its sole responsibility is to // facilitate peer discovery and/or serve as a relay for peer connections. package main import ( "context" "fmt" mathrand "math/rand" "strings" "...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: forwarding/session.proto package forwarding import ( fmt "fmt" proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" url "github.com/mutagen-io/mutagen/pkg/url" math "math" ) // Reference imports to suppress e...
package engine import ( "bytes" "fmt" "strings" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/s3" "github.com/pkg/errors" "github.com/stitchfix/flotilla-os/clients/metrics" "github.com/stitchfix/flotilla-os/config" "github.com/stitchfix/fl...
package campaigns import ( "context" "database/sql" "flag" "fmt" "os" "strings" "testing" "github.com/google/go-cmp/cmp" "github.com/inconshreveable/log15" "github.com/keegancsmith/sqlf" "github.com/sourcegraph/go-diff/diff" "github.com/sourcegraph/sourcegraph/cmd/frontend/graphqlbackend" "github.com/sou...
package create import ( "bytes" "encoding/json" "fmt" "io/ioutil" "strings" "time" "github.com/profclems/glab/commands/release/releaseutils" "github.com/profclems/glab/commands/release/releaseutils/upload" "github.com/AlecAivazis/survey/v2" "github.com/MakeNowJust/heredoc" "github.com/profclems/glab/inter...
// This file is part of CycloneDX Go // // 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: envoy/extensions/tracers/opencensus/v4alpha/opencensus.proto package envoy_extensions_tracers_opencensus_v4alpha import ( fmt "fmt" v1 "github.com/census-instrumentation/opencensus-proto/gen-go/trace/v1" _ "github.com/cncf/udpa/go/udpa/annotations" v4alp...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: v0.10.0/verrpc/verrpc.proto package verrpc import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" math "math" ) // Refere...
package e2e import ( "context" "fmt" "os" "path/filepath" "strings" "time" "github.com/onsi/gomega" apps "k8s.io/api/apps/v1" v1 "k8s.io/api/core/v1" storagev1 "k8s.io/api/storage/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/api...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: common.proto package common 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-...
package decnum import ( "bufio" "fmt" "os" "path/filepath" "strings" "testing" ) const DEBUG_PRINT_PROCESSED_LINES bool = false // ##### set to true if you want to list all the lines in test files that have been processed ##### // This function runs the test files in cowlishaw_test_files/ directory. // T...
// Copyright (c) 2018 Uber Technologies, Inc. // // 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, merge...
// Copyright 2016-2018 Authors of Cilium // // 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 dpn import ( "archive/tar" "crypto/sha256" "fmt" "github.com/APTrust/bagins" "github.com/APTrust/bagman/bagman" "github.com/nsqio/go-nsq" "io" "os" "path/filepath" "regexp" "runtime" "strings" ) // BAGIT_TAGS contains a list of tags required in the bagit file. var BAGIT_TAGS = []string { "BagIt-...
// Copyright (C) 2016 mparaiso <<EMAIL>> // // 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 app...
package cfghttp // This file wraps around the go-git library to create a GitServer interface import ( "bufio" "bytes" "context" "fmt" "io" logg "log" "net/http" "strings" git "gopkg.in/src-d/go-git.v4" "gopkg.in/src-d/go-git.v4/plumbing/protocol/packp" "gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/cap...
/* kylixor.go _________________________________ Main code for Kylixor Discord Bot <NAME> kylixor.com */ package main import ( "bufio" "database/sql" "encoding/json" "fmt" "math/rand" "os" "os/signal" "path/filepath" "regexp" "runtime" "strconv" "strings" "syscall" "time" "github.com/bwmarrin/discordg...
package replicate import ( "fmt" "regexp" "strconv" "strings" semver "github.com/Masterminds/semver/v3" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" "k8s.io/client-go/tools/cache" ) // pattern of a valid kubernetes name var validName = regexp.MustCompile(`^[0-9a-z.-]+$`) var va...
package service import ( "context" "sort" "sync" "time" "github.com/filecoin-project/go-address" "github.com/filecoin-project/go-state-types/abi" "github.com/filecoin-project/go-state-types/big" "github.com/filecoin-project/venus/pkg/crypto" venusTypes "github.com/filecoin-project/venus/pkg/types" "github.c...
package vncclient import ( "bufio" "bytes" "crypto/des" "encoding/binary" "fmt" "io" "log" "net" "syscall" "time" "github.com/veandco/go-sdl2/sdl" "golang.org/x/term" ) // Swap DES key first bit <-> last bit func invertbit(buf []byte) { l := len(buf) for i := 0; i < l; i++ { r := buf[i] r = (r&0xf0...
package wotreplay import ( "encoding/json" "fmt" ) // BattleResults is block data about "Battle Result" type BattleResults struct { Results battleResults Vehicles map[vehicleID]vehicle Data map[vehicleID]struct { Flags int `json:"flags"` } } type battleResults struct { ArenaUniqueID int64 `json:"arenaU...
// Copyright (c) 2020 Cisco and/or its affiliates. // // SPDX-License-Identifier: Apache-2.0 // // 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/LICE...
/* Copyright 2017 by the contributors. 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, sof...
/* Description : 请求上下文 Author : ManGe Version : v0.5 Date : 2021-12-18 */ package gathertool import ( "bytes" "compress/gzip" "context" "crypto/md5" "encoding/hex" "fmt" "io/ioutil" "log" "math" "math/rand" "net" "net/http" "net/http/httputil" "net/url" "os" "strings" "sync" "time" ) // 重试次数 ty...
package apartmanx import ( "strconv" "database/sql" "strings" "time" "fmt" ) type Rapor struct { Borclandirma []OzelRapor Odeme []Odeme BorcToplam float64 OdemeToplam float64 KalanBorc float64 } type OzelRapor struct { Borc Borclandirma Kisi Kisi BorcGun int BorcPayi float64 }...
// 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 main import ( "encoding/binary" "fmt" "io" ) type SoundFontHydra struct { // Headers is a listing of all presets within the SoundFont compatible file. // It always contains a minimum of two records, one record for each preset and one for a terminal record. Headers []PresetHeader // PBag is a listing o...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: v2/event.proto /* Package loggingv2 is a generated protocol buffer package. It is generated from these files: v2/event.proto It has these top-level messages: Event */ package loggingv2 import proto "github.com/golang/protobuf/proto" import fmt "fmt" impo...
package main import ( "crypto/tls" "errors" "fmt" "github.com/BurntSushi/toml" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/s3/s3manager" "github.com/aws/aws-sdk-go/service/sqs" "github.com/bestmethod/go...
// Copyright 2016 NDP Systèmes. 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 applica...
package action import ( "context" "errors" "fmt" "strings" "time" "github.com/go-kit/kit/log" "github.com/go-kit/kit/log/level" "github.com/prometheus/common/model" "github.com/prometheus/prometheus/discovery/targetgroup" baremetal "github.com/scaleway/scaleway-sdk-go/api/baremetal/v1alpha1" instance "gith...
// 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
// // FrankyGo - UCI chess engine in GO for learning purposes // // MIT License // // Copyright (c) 2018-2020 <NAME> // // 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,...
// +build f411xe // Peripheral: USB_OTG_Global_Periph USB_OTG_Core_Registers. // Instances: // Registers: // 0x00 32 GOTGCTL USB_OTG Control and Status Register 000h. // 0x04 32 GOTGINT USB_OTG Interrupt Register 004h. // 0x08 32 GAHBCFG Core AHB Co...
package deployment import ( "fmt" "github.com/golang/glog" kapi "k8s.io/kubernetes/pkg/api" kerrors "k8s.io/kubernetes/pkg/api/errors" "k8s.io/kubernetes/pkg/client/cache" "k8s.io/kubernetes/pkg/client/record" kclient "k8s.io/kubernetes/pkg/client/unversioned" "k8s.io/kubernetes/pkg/runtime" utilruntime "k8...
/* Reference 1: https://github.com/BoschSensortec/BMP280_driver Reference 2: https://forums.adafruit.com/viewtopic.php?f=19&t=89049 */ package bmp280 import ( "../embd" _ "../embd/host/all" _ "../embd/host/rpi" "fmt" "log" "math" "time" ) const ( // I2C Address Definitions Address1 = 0x76 Address2 = 0x77 ...
// Copyright 2016 <NAME> // // 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 writi...
package echo import ( "encoding/json" "encoding/xml" "fmt" "io" "mime" "mime/multipart" "net/http" "os" "path/filepath" "time" "bytes" "github.com/trafficstars/echo-engine/context" "github.com/trafficstars/echo-engine/engine" "github.com/trafficstars/echo-engine/log" ) type ( // Context represents th...
// Copyright (c) 2019 The BFE 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 agre...
// Copyright Fuzamei Corp. 2018 All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package dapp 系统基础dapp包 package dapp //package none execer for unknow execer //all none transaction exec ok, execept nofee //nofee transaction will not pack in...
//GVariant : GVariant — strongly typed value datatype // https://developer.gnome.org/glib/2.26/glib-GVariant.html package glib // #include "gvariant.go.h" // #include "glib.go.h" import "C" import ( "errors" "fmt" "runtime" "unsafe" ) /* * GVariant */ // IVariant is an interface type implemented by Variant a...
package dns import ( "net" "testing" ) // TestPackDataOpt tests generated using fuzz.go and with a message pack // containing the following bytes: // "0000\x00\x00000000\x00\x00/00000" + // "0\x00\v\x00#\b00000000\x00\x00)000" + // "000\x00\x1c00\x00\x0000\x00\x01000\x00\x00\x00\b" + // "\x00\v\x00\x02\x0000000000"...
package oss import ( "encoding/xml" "net/url" "time" ) // ListBucketsResult ListBuckets请求返回的结果 type ListBucketsResult struct { XMLName xml.Name `xml:"ListAllMyBucketsResult"` Prefix string `xml:"Prefix"` // 本次查询结果的前缀 Marker string `xml:"Marker"` //...
/* * Copyright 2020 The Magma Authors. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, *...
/* Copyright 2020 The Flux 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, softwar...