text
stringlengths
5.51k
28.1k
// Copyright 2017 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, ...
package addrs import ( "fmt" "strings" "golang.org/x/net/idna" "github.com/hashicorp/hcl/v2" svchost "github.com/hashicorp/terraform-svchost" "github.com/hashicorp/terraform/tfdiags" ) // Provider encapsulates a single provider type. In the future this will be // extended to include additional fields includin...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: test.proto package testv1 import ( subtest "github.com/sagikazarmark/protoc-gen-kit/test/subtest" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/...
/** * Copyright 2016 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...
package integration import ( "context" "encoding/json" "errors" "fmt" "io/ioutil" "net/http" "os" "path/filepath" "regexp" "runtime" "strings" "sync" "testing" "time" "github.com/stretchr/testify/suite" "github.com/thoas/go-funk" "github.com/ActiveState/cli/internal/config" "github.com/ActiveState/...
package cmd import ( "fmt" "os" "strings" "sync" "github.com/pkg/profile" "github.com/spf13/cobra" "github.com/spf13/pflag" "github.com/spf13/viper" "github.com/wagoodman/go-partybus" "github.com/anchore/grype/grype" "github.com/anchore/grype/grype/db" grypeDb "github.com/anchore/grype/grype/db/v3" "git...
// Copyright 2015 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 main import ( "bytes" "encoding/json" "encoding/xml" "fmt" "io/ioutil" "os" "os/exec" "path/filepath" "sort" "strconv" "strings" "text/template" "time" "github.com/olekukonko/tablewriter" "github.com/pkg/errors" "github.com/spf13/pflag" ) // doNotTranslateFileName as recognised by the Android...
package transactional import ( "context" "database/sql" "errors" "fmt" "strings" "time" "getsturdy.com/api/pkg/analytics" service_analytics "getsturdy.com/api/pkg/analytics/service" service_change "getsturdy.com/api/pkg/change/service" db_codebase "getsturdy.com/api/pkg/codebase/db" "getsturdy.com/api/pkg/...
package aws import ( "context" "crypto/tls" "flag" "fmt" "hash/fnv" "io" "net" "net/http" "strings" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/session" ...
package fuzz import ( "context" "errors" "fmt" "log" "net/http" "net/url" "os" "path/filepath" "regexp" "strconv" "sync" "time" "github.com/RedTeamPentesting/monsoon/cli" "github.com/RedTeamPentesting/monsoon/producer" "github.com/RedTeamPentesting/monsoon/recorder" "github.com/RedTeamPentesting/monso...
package lumpy import ( "bytes" "io" "io/ioutil" "math" "os" "os/exec" "path/filepath" "runtime" "sort" "strconv" "strings" "sync" "time" "github.com/biogo/hts/bam" "github.com/biogo/hts/sam" "github.com/biogo/store/interval" "github.com/brentp/goleft/depth" "github.com/brentp/smoove/shared" "github...
package api import ( "bufio" "encoding/json" "fmt" "io/ioutil" "net/http" "net/url" "path/filepath" "strconv" "time" "github.com/0xrawsec/whids/event" "github.com/0xrawsec/whids/hids/sysinfo" "github.com/0xrawsec/whids/sysmon" "github.com/0xrawsec/whids/tools" "github.com/0xrawsec/whids/utils" "github...
package main import ( "encoding/json" "fmt" log "github.com/sirupsen/logrus" "io" "io/ioutil" "os" "os/exec" "strings" "time" ) const ( WorksDB = "works-db" WorksApi = "works-api" WorksSamba = "works-samba" Guacd = "guacd" Guacamole = "guacamole" ) type Config struct { ClusterDefaultName string `...
/* (c) Copyright [2021] Micro Focus or one of 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 Unless required by applicable law or a...
package spotifyauth // InukApp - "Todo: add Plex auth support" (03/22/20) // DaedTTV - "32 Font Size Kinda THICC" (03/23/20) // thoastyk "X O X" (02/26/20) // thoastyk "_ X O" (02/26/20) // pheonix_d123 "O O X I wanna interrupt the tic-tac-toe." (03/08/20) // Belonix97 "X O O I want to interrupt the interrupted ti...
/******************************************************************************* * * Copyright 2019 SAP SE * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You should have received a copy of the License along with this * program. If...
// Copyright 2019-2022 The Liqo 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...
// Provides routines to render flights as PDFs in various ways package fpdf import( "fmt" "io" "math" "time" "github.com/jung-kurt/gofpdf" // https://godoc.org/github.com/jung-kurt/gofpdf "github.com/skypies/geo/sfo" fdb "github.com/skypies/flightdb" ) type ColorScheme int const( ByGroundspeed ColorScheme = i...
// Copyright 2018 <NAME>.A.S. Atos Technologies - Bull, R<NAME>, B.P.68, 78340, Les Clayes-sous-Bois, France. // // 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....
package service import ( "errors" "fmt" "log" "strings" "time" "github.com/jinzhu/gorm" "github.com/stoewer/go-strcase" "github.com/t2wu/betterrest/datamapper/gormfixes" "github.com/t2wu/betterrest/db" "github.com/t2wu/betterrest/libs/datatypes" "github.com/t2wu/betterrest/libs/urlparam" "github.com/t2wu/...
// Copyright 2014 The Azul3D 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 lmath import ( "fmt" "math" ) // Quat represents a four component vector. type Quat struct { W, X, Y, Z float64 } // String returns an string ...
package main // Move contains the information needed to transition from one Position to another. type Move struct { From Square To Square // invariant: not equal to From Piece Piece // the moving Piece; invariant: not None CapturePiece Piece // the Piece being captured, or else None EP ...
// Copyright 2022 Franklin "Snaipe" Mathieu. // // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. package toml import ( "fmt" "go/constant" "io" "math" "math/big" "strings" "time" "unicode" "unicode/utf8" . "snai.pe/boa/syntax" ) const ( TokenEqual ...
package compiler import ( "bytes" "fmt" "log" "strings" "unicode/utf8" "github.com/wellington/sass/ast" "github.com/wellington/sass/calc" "github.com/wellington/sass/parser" "github.com/wellington/sass/token" ) // Context maintains the state of the compiler and handles the output of the // parser. type Cont...
package ogg import ( "bufio" "errors" "fmt" "io" "os" "github.com/toy80/debug" ) var ( // ErrEndOfPacket indicates reach packet edge ErrEndOfPacket = errors.New("ogg: end of packet") // ErrCorrupted indicates bad ogg format or data corrupted ErrCorrupted = errors.New("ogg: corrupted") ) ...
// Parts of this file are derived from net/rpc and net/rpc/jsonproc Go packages. // Copyright/license info follow. // Copyright 2009 The Go Authors. All rights reserved. // License: // Copyright (c) 2012 The Go Authors. All rights reserved. // Redistribution and use in source and binary forms, with or without // modif...
// Copyright 2019-present 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 agr...
package utlstransport import ( "context" "crypto/tls" "errors" "fmt" "log" "net" "net/http" "net/url" "os" "strings" "sync" "time" utls "github.com/refraction-networking/utls" "golang.org/x/net/http2" "golang.org/x/net/idna" "golang.org/x/net/proxy" ) // uhttpLogger is the type of the optional logger...
// Copyright 2018 The gVisor 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 agree...
package devdeploy import ( "bufio" "crypto/md5" "fmt" "io/ioutil" "log" "os" "os/exec" "path/filepath" "regexp" "strings" "github.com/aws/aws-sdk-go/service/s3/s3manager" "github.com/pborman/uuid" "github.com/pkg/errors" ) // BuildDockerRequest defines the details needed to execute a docker build. type ...
package services import ( "encoding/hex" "fmt" "github.com/bloXroute-Labs/gateway" log "github.com/bloXroute-Labs/gateway/logger" pbbase "github.com/bloXroute-Labs/gateway/protobuf" "github.com/bloXroute-Labs/gateway/types" "github.com/bloXroute-Labs/gateway/utils" "github.com/orcaman/concurrent-map" "runtime...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.23.0 // protoc v3.12.4 // source: identity_state.proto package com_elarian_hera_proto import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang....
// Code generated by protoc-gen-go. // source: google.golang.org/cloud/bigtable/internal/table_service_proto/bigtable_table_service_messages.proto // DO NOT EDIT! /* Package google_bigtable_admin_table_v1 is a generated protocol buffer package. It is generated from these files: google.golang.org/cloud/bigtable/inter...
package edge import ( "bufio" "github.com/ronaksoft/rony" "github.com/ronaksoft/rony/di" "github.com/ronaksoft/rony/errors" "github.com/ronaksoft/rony/internal/metrics" "github.com/ronaksoft/rony/internal/msg" "github.com/ronaksoft/rony/log" "github.com/ronaksoft/rony/pools" "github.com/ronaksoft/rony/registr...
package tree import ( "fmt" "math" "github.com/rasaford/algorithms/internal/helper" ) // Properties of a Red-Black-Tree: // 1. Every node is either red or black // 2. The root is black // 3. Every leaf is black // 4. If a node is red then both it's children are black // 5. For each node, all simple paths from the...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: bumstream.proto package bumpb import ( context "context" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.o...
package main import ( "eaciit/gdrj/model" "eaciit/gdrj/modules" "os" "strings" "time" "github.com/eaciit/dbox" "github.com/eaciit/orm/v1" "github.com/eaciit/toolkit" ) var conn dbox.IConnection var count int var ratioTableName string var ( t0 time.Time fiscalyear, iscount, scount...
/* Copyright 2019 Cisco Systems 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 d...
/*------------------------------------------------------------------------- * * perfdata_processor.go * Perf data processor Plugin * * * Copyright (c) 2021, Alibaba Group Holding Limited * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with th...
/* stickypipe agent Takes environment variables: // End points are our devices such as a network switch. SP_ENDPOINTS="192.168.30.1,c2960g,nexus5k-top" // Credentials are our logins to the endpoints. SP_ENDPOINT_CREDENTIALS="public" then pipes the output up to sitckypipe in a JSON based string: { name: c2960g, in...
// 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
package bls import ( "fmt" "io" "math/big" ) // FQ6 is an element of FQ6 represented by c0 + c1*v + v2*v**2 type FQ6 struct { c0 *FQ2 c1 *FQ2 c2 *FQ2 } // NewFQ6 creates a new FQ6 element. func NewFQ6(c0 *FQ2, c1 *FQ2, c2 *FQ2) *FQ6 { return &FQ6{ c0: c0, c1: c1, c2: c2, } } func (f FQ6) String() stri...
// Copyright 2016 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 table implements ordered, grouped two dimensional relations. // // There are two related abstractions: Table and Grouping. // // A Table is an ordere...
package keeper import ( "bytes" "encoding/binary" "encoding/json" "io" "strconv" // This package is needed so that all the preloaded plugins are loaded automatically mh "github.com/multiformats/go-multihash" icore "github.com/ipfs/interface-go-ipfs-core" _ "github.com/ipld/go-ipld-prime/codec/dagcbor" "g...
// Copyright 2019-2021 go-gtp 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 ie provides encoding/decoding feature of GTPv1 Information Elements. */ package ie import ( "encoding/binary" "fmt" ) // TV IE definitions. ...
package main import ( "bufio" "fmt" "math/rand" "os" "os/exec" "strings" "time" ) //------------------------------------------- // ZOMBIELANDMANIA 2: <NAME> //------------------------------------------- /* This is a text-based turn-based shooter played in a rectangular grid against zombie AI opponents. On th...
package statedb import ( "fmt" "math/big" "sort" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/ethereum/go-ethereum/common" ethtypes "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/core/vm" "github.com/ethereum/go-ethe...
// Package tds provides methods for delaunay triangulation. package tds import ( "fmt" "log" "math" ) func sqrt(x float32) float32 { return float32(math.Sqrt(float64(x))) } type Vec2 [2]float32 // Sub stores the result of a-b in v. func (v *Vec2) Sub(a, b *Vec2) { v[0] = a[0] - b[0] v[1] = a[1] - b[1] } // A...
// Copyright 2012, 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. package tabletserver import ( "encoding/gob" "expvar" "fmt" "strings" "sync" "time" "code.google.com/p/vitess/go/bson" "code.google.com/p/vitess/go/relog...
// Copyright 2019 <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...
// Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs /home/michael/go/src/github.com/gokrazy/fbstatus/internal/fb/ctypes.go package fb type FixScreeninfo struct { Id [16]int8 Smem_start uint64 Smem_len uint32 Type uint32 Type_aux uint32 Visual uint32 Xpanstep ...
package committee import ( "context" "errors" "fmt" "sync" "github.com/prometheus/client_golang/prometheus" beacon "github.com/oasisprotocol/oasis-core/go/beacon/api" "github.com/oasisprotocol/oasis-core/go/common/identity" "github.com/oasisprotocol/oasis-core/go/common/logging" consensus "github.com/oasisp...
package protocol import ( "bytes" "encoding/binary" "fmt" ) // Skin represents the skin of a player as sent over network. The skin holds a texture and a model, and // optional animations which may be present when the skin is created using persona or bought from the // marketplace. type Skin struct { // SkinID is ...
package rpc import ( "context" "fmt" "math/big" "strings" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/server" "github.com/crypto-org-chain/cronos/x/cronos/types" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" ethtypes "github.com/ethereum/go...
package zenity import ( "context" "fmt" "os" "reflect" "runtime" "strconv" "sync/atomic" "syscall" "unsafe" "golang.org/x/sys/windows" ) var ( comctl32 = windows.NewLazySystemDLL("comctl32.dll") comdlg32 = windows.NewLazySystemDLL("comdlg32.dll") gdi32 = windows.NewLazySystemDLL("gdi32.dll") kernel3...
// 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...
package cli import ( "fmt" "math" "path/filepath" "sort" "strings" "sync" "time" "github.com/dundee/gdu/analyze" "github.com/gdamore/tcell/v2" "github.com/rivo/tview" ) const helpTextColorized = ` [red]up, down, k, j [white]Move cursor up/down [red]enter, right, l [white]Select directory/device ...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: github.com/solo-io/solo-kit/api/external/envoy/type/percent.proto package _type import ( bytes "bytes" fmt "fmt" math "math" _ "github.com/envoyproxy/protoc-gen-validate/validate" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobu...
package lgx // ---------------------------------------------------------------------------------- // lgx.go (https://github.com/waldurbas/got) // Copyright 2019,2021 by <NAME> //----------------------------------------------------------------------------------- // This Source Code Form is subject to the terms of the '...
package auth0 import ( "encoding/json" "errors" "fmt" "github.com/influxdata/telegraf/plugins/common/running_stats" "io" "io/ioutil" "net" "net/http" "net/url" "regexp" "strings" "time" "unicode/utf8" "github.com/SermoDigital/jose/jws" "github.com/influxdata/telegraf" "github.com/influxdata/telegraf/c...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.6.1 // source: protos/plugin/db.proto package plugin import ( helpers "code-analyser/protos/pb/helpers" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/r...
package main import ( "bytes" "context" "encoding/json" "fmt" "html/template" "io/ioutil" "net" "net/http" "os" "strconv" "strings" "time" "github.com/shomali11/util/xhashes" "cloud.google.com/go/bigquery" pb "github.com/gidoBOSSftw5731/Historical-ROA/proto" "github.com/gidoBOSSftw5731/log" "google....
// Code generated by protoc-gen-go. DO NOT EDIT. // source: tests.proto package google_cloud_conformance_bigtable_v2 import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" v2 "google.golang.org/genproto/googleapis/bigtable/v2" ) // Reference imports to suppress errors if they are not otherwise ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/api/backend.proto package serviceconfig import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf /...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: proto/file_service.proto package proto import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" ) c...
/* * Copyright (c) 2021 THL A29 Limited, a Tencent company. All rights reserved * * This source code file is licensed under the MIT License, you may obtain a copy of the License at * * http://opensource.org/licenses/MIT * */ package engine import ( "fmt" "reflect" "time" "github.com/Tencent/bk-ci/src/boos...
package schema import ( "fmt" "regexp" "strings" "time" "github.com/72nd/acc/pkg/util" "github.com/creasty/defaults" "github.com/logrusorgru/aurora" "github.com/sirupsen/logrus" ) const DefaultExpensesFile = "expenses.yaml" const DefaultExpensePrefix = "e-" // Expenses is a slice of multiple expenses. type ...
package compress import ( "bufio" "compress/flate" "compress/gzip" "errors" "fmt" "io" "log" "net" "net/http" "strings" "sync" ) const contentTypeHeader = "Content-Type" const contentEncodingHeader = "Content-Encoding" const acceptEncodingHeader = "Accept-Encoding" // MimePolicy interface can be used to d...
package buddystore import ( "bytes" "encoding/binary" "fmt" "log" "time" ) // Converts the ID to string func (vn *Vnode) String() string { return fmt.Sprintf("%x", vn.Id) } // Initializes a local vnode func (vn *localVnode) init(idx int) { // Generate an ID vn.genId(uint16(idx)) // Set our host vn.Host = ...
// Copyright (c) 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, including without limitation the rights // to use, copy, modify, merge, publish, distri...
package fleet import ( "context" "time" ) type CarveStore interface { NewCarve(ctx context.Context, metadata *CarveMetadata) (*CarveMetadata, error) UpdateCarve(ctx context.Context, metadata *CarveMetadata) error Carve(ctx context.Context, carveId int64) (*CarveMetadata, error) CarveBySessionId(ctx context.Cont...
// Copyright 2019 The Cockroach Authors. // // Licensed as a CockroachDB Enterprise file under the Cockroach Community // License (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // https://github.com/cockroachdb/cockroach/blob/master/li...
package models import "C" import ( "encoding/gob" "errors" "fmt" "image" "image/draw" "os" "strconv" "strings" "sync" "unsafe" "github.com/go-gl/gl/v4.1-core/gl" "github.com/go-gl/mathgl/mgl32" "github.com/nvisioner/assimp" ) type Mesh struct { Id int Vertices []Vertex Indices []uint32 Textu...
//nolint:lll package syslwrapper import ( "fmt" "strings" "github.com/anz-bank/sysl/pkg/sysl" ) // App is a simplified representation of an application in sysl type App struct { Name string Attributes map[string]string // Contains app level attributes. All attributes assumed to be strings. Endpoints ...
// Package meta reads and interprets repo metadata (acyl.yml) package meta import ( "context" "fmt" "io" "os" "path" "path/filepath" "strconv" "strings" "time" "github.com/dollarshaveclub/acyl/pkg/eventlogger" "github.com/dollarshaveclub/acyl/pkg/ghclient" "github.com/dollarshaveclub/acyl/pkg/match" "git...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/asset/v1p1beta1/assets.proto package asset import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" v1 "google.golang.org/genproto/googleapis/iam/v1" ) // Reference ...
// Copyright 2017 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 © 2013 <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/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
// Copyright (c) 2013-2017 The btcsuite developers // Copyright (c) 2015-2016 The Decred developers // Copyright (C) 2015-2017 The Lightning Network Developers package lnd import ( "log" "net" "time" "google.golang.org/grpc" "github.com/lightningnetwork/lnd/channeldb" "fmt" "github.com/lightningnetwork/lnd/ln...
// Copyright © 2018 <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 wri...
package command import ( "bufio" "context" "fmt" "io" "math" "math/rand" "os" "runtime" "runtime/pprof" "sort" "strings" "sync" "time" "github.com/spf13/viper" "google.golang.org/grpc" "github.com/chrislusf/seaweedfs/weed/glog" "github.com/chrislusf/seaweedfs/weed/operation" "github.com/chrislusf/s...
package game import ( "grizzled/database" "log" "os" "strconv" "github.com/looplab/fsm" DataStr "github.com/skynocover/GoStackQueue" ) type tRound struct { rounds int //回合數 drawNum int //抽牌數目 success bool //任務成功 support []Supports //用來紀錄每個人拿到的support tmp i...
/* 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, ...
package ws import ( "bufio" "bytes" "fmt" "io" "net" "net/http" "time" _ "unsafe" // for go:linkname "github.com/gobwas/httphead" "github.com/gobwas/pool/pbufio" ) // Constants used by ConnUpgrader. const ( DefaultServerReadBufferSize = 4096 DefaultServerWriteBufferSize = 512 ) // Errors used by both c...
/* * Minio Cloud Storage, (C) 2018 Minio, 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 la...
/* Copyright 2016 The Kubernetes 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 ag...
package config import ( "fmt" "time" "github.com/spf13/pflag" "github.com/spf13/viper" "github.com/syndtr/goleveldb/leveldb/errors" ) // default settings const ( // NodeModeNormal NODE_MODE_NORMAL node mode for normal NodeModeNormal = "Normal" // NodeModeFastSync NODE_MODE_FAST_SYNC node mode for fast NodeM...
package vlabs import ( "encoding/json" "fmt" "strings" ) // ResourcePurchasePlan defines resource plan as required by ARM // for billing purposes. type ResourcePurchasePlan struct { Name string `json:"name,omitempty"` Product string `json:"product,omitempty"` PromotionCode string `json:"promotion...
package main import ( "encoding/json" "fmt" "os" "strconv" "strings" "time" "github.com/containers/buildah" "github.com/containers/buildah/define" "github.com/containers/buildah/docker" buildahcli "github.com/containers/buildah/pkg/cli" "github.com/mattn/go-shellwords" "github.com/pkg/errors" "github.com...
/* Copyright 2014 - 2015 Workiva, 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, softwar...
// Copyright (c) 2017-2018 Uber Technologies, 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 applicabl...
// Copyright 2016 The Gogs 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 models import ( "fmt" "strings" "time" "github.com/Unknwon/com" "github.com/go-xorm/xorm" log "gopkg.in/clog.v1" api "github.com/gogits/go-g...
/* * 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 2022 VMware, Inc. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 // Package cluster provides the TKR Resolver mutating webhook on CAPI Cluster. package cluster import ( "context" "encoding/json" "fmt" "net/http" "strings" "github.com/go-logr/logr" "github.com/pkg/errors" "gopkg.in/y...
package board import ( "github.com/easychessanimations/gochess/utils" ) ///////////////////////////////////////////////////////////////////// // imports ///////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// // member functions f...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: moc_cloudagent_subscription.proto package cloud import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" common "github.com/microsoft/moc/rpc/common" grpc "google.golang.org/grp...
// Copyright 2015 The go-ethereum Authors // Copyright 2015 <NAME> <<EMAIL>> // Copyright 2015 <NAME> <<EMAIL>> // 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 publish...
// s3-benchmark.go // Copyright (c) 2017 Wasabi Technology, Inc. // Forked and maintained by MinIO, Inc. package main import ( "bytes" "crypto/hmac" "crypto/sha1" "crypto/tls" "encoding/base64" "encoding/json" "flag" "fmt" "io" "io/ioutil" "log" "math/rand" "net" "net/http" "os" "sort" "strconv" "st...
// Copyright 2016 CoreOS, 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...