text
stringlengths
5.51k
28.1k
package sm2 import ( "bytes" "crypto/elliptic" "crypto/rand" "encoding/asn1" "encoding/binary" "encoding/json" "errors" "fmt" "hash" "io" "math/big" "github.com/t1anchen/gogmlib/sm3" "github.com/t1anchen/gogmlib/utils" ) const ( BitSize = 256 KeyBytes = (BitSize + 7) / 8 UnCompressed = 0x04 ...
package data import ( "fmt" "strconv" "strings" log "github.com/sirupsen/logrus" ) /* Copyright 2019 Crunchy Data Solutions, 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...
/* Copyright 2021. The KubeVela 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 writ...
package gossiper // Implemented by Liangwei and Fengyu import ( "bytes" "crypto/sha256" "encoding/binary" "encoding/hex" "fmt" "math/rand" "sync" "time" "github.com/TRUMANCFY/DSEProject/Peerster/message" ) type Blockchain struct { // Blocks Blocks []*message.Block BlockMux sync.Mutex // Number of Pe...
package clusteredBigCache import ( "fmt" "net" "strconv" "sync" "sync/atomic" "time" "encoding/binary" "errors" "github.com/oaStuff/clusteredBigCache/comms" "github.com/oaStuff/clusteredBigCache/message" "github.com/oaStuff/clusteredBigCache/utils" "github.com/oklog/run" ) const ( nodeStateConnecting = ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.4 // source: externalscaler.proto package externalscaler import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect"...
package bosun import ( "fmt" "github.com/naveego/bosun/pkg/core" "github.com/naveego/bosun/pkg/environment" "github.com/naveego/bosun/pkg/filter" "github.com/naveego/bosun/pkg/git" "github.com/naveego/bosun/pkg/kube" "github.com/naveego/bosun/pkg/values" "github.com/naveego/bosun/pkg/workspace" "github.com/pk...
/* Copyright 2021 Red Hat, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software d...
/* 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 dede import ( "encoding/json" "encoding/xml" "fmt" "github.com/spf13/cobra" "github.com/xiusin/logger" "github.com/xiusin/pinecms/src/application/models/tables" "github.com/xiusin/pinecms/src/config" "regexp" "strconv" "strings" "time" "xorm.io/core" "xorm.io/xorm" ) var ( dc = confi...
package main import ( "encoding/base64" "fmt" "log" "math" "math/rand" "os" "os/user" "path/filepath" "strconv" "time" "github.com/looplab/fsm" "github.com/veandco/go-sdl2/sdl" "github.com/veandco/go-sdl2/ttf" ) type State int const ( ON_MENU State = iota PLAYING PAUSED GAME_OVER GAME_WIN ) cons...
package router import ( "bytes" "encoding/gob" "io" "math/rand" "sync" ) type Peers struct { sync.RWMutex ourself *LocalPeer byName map[PeerName]*Peer byShortID map[PeerShortID]ShortIDPeers onGC []func(*Peer) // Called when the mapping from short ids to peers changes onInvalidateShortIDs []func...
//---------------------------------------- // 代码由GenlibVcl工具自动生成。 // Copyright © ying32. All Rights Reserved. // //---------------------------------------- package vcl import ( . "github.com/ying32/govcl/vcl/api" . "github.com/ying32/govcl/vcl/types" "unsafe" ) type TControl struct { IControl ins...
package html2text // Fork of https://github.com/jaytaylor/html2text // This does additional processing to omit non-content areas and rewrite; // a: tags to markdown style links // HX: headers to markdown style with prefixed 'X' number of "#" characters // li: tags to markdown style unordered lists (even for o...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.15.8 // source: api/tarus/judge.oci.proto package tarus import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.g...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.23.0 // protoc v3.12.0 // source: permission.proto package proto import ( context "context" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang....
// Copyright (c) 2020-2021 Blockwatch Data Inc. // Author: <EMAIL> package server import ( "encoding/json" "fmt" "strconv" "time" "blockwatch.cc/packdb/pack" "blockwatch.cc/packdb/util" "blockwatch.cc/tzgo/tezos" "blockwatch.cc/tzindex/etl/model" ) var ( // all series field names as list chainSeriesNames ...
package main import ( "fmt" "github.com/thoas/go-funk" "log" "math" "sort" "strconv" "strings" "time" ) var predefinedGroupName = []string{ "sector", "industry", "subindustry", "market", "type", "currency", "acc", } const ( GROUP_SECTOR = 0 GROUP_INDUSTRY = 1 GROUP_SUBINDUSTRY = 2 GROUP_MA...
// 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 cl import ( "go/ast" "go/constant" "go/token" "go/types" "log" "math/big" "strconv" "github.com/goplus/gox" cast "github.com/goplus/c2go/clang/ast" ctypes "github.com/goplus/c2go/clang/types" ) // ----------------------------------------------------------------------------- func decl_builtin(pkg ...
package kubekit import ( "fmt" "os" "path/filepath" "strings" "github.com/liferaft/kubekit/cli" "github.com/liferaft/kubekit/pkg/crypto/tls" "github.com/liferaft/kubekit/pkg/kluster" "github.com/spf13/cobra" ) const defPackageFormat = "rpm" // initCmd represents the init command var initCmd = &cobra.Command...
package atom import ( "encoding/base64" "encoding/hex" "fmt" "math" "math/big" "strconv" "strings" "time" ) // An Aura is a type hint that controls how an Atom is printed. type Aura string // Atom auras. const ( AuraAtom = "" // no aura AuraD = "d" // date AuraDA = "da" // absolute date AuraDR...
/* * Copyright 2015 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
package bitfinex import ( "bytes" "crypto/tls" "encoding/json" "fmt" "log" "net/http" "reflect" "github.com/bitfinexcom/bitfinex-api-go/utils" "github.com/gorilla/websocket" ) // Pairs available const ( // Pairs BTCUSD = "BTCUSD" LTCUSD = "LTCUSD" LTCBTC = "LTCBTC" ETHUSD = "ETHUSD" ETHBTC = "ETHBTC"...
package appy import ( "context" "fmt" "io" "net" "net/http" "net/http/httptest" "os" "runtime" "strings" "github.com/99designs/gqlgen/graphql" gqlHandler "github.com/99designs/gqlgen/graphql/handler" "github.com/99designs/gqlgen/graphql/handler/apollotracing" "github.com/99designs/gqlgen/graphql/handler/...
package lazyledger import ( "bytes" "crypto/sha256" "crypto/rand" "math" "math/big" "gitlab.com/NebulousLabs/merkletree" "github.com/musalbas/rsmt2d" ) // ProbabilisticBlock represents a block designed for the Probabilistic Validity Rule. type ProbabilisticBlock struct { prevHash []by...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/google_ads_field.proto package resources import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" wrappers "github.com/catper/protobuf/ptypes/wrappers" enums "google.golang.org/genproto/googleapis/ads/go...
// Code generated from D:/Projects/datatable/grammar/Datatable.g4 by ANTLR 4.9. DO NOT EDIT. package parser import ( "fmt" "unicode" "github.com/antlr/antlr4/runtime/Go/antlr" ) // Suppress unused import error var _ = fmt.Printf var _ = unicode.IsLetter var serializedLexerAtn = []uint16{ 3, 24715, 42794, 33075...
package gotypeform import ( "bytes" "encoding/json" ) type Forms struct { TotalItems int `json:"total_items"` PageCount int `json:"page_count"` Items []FormItems `json:"items"` } type FormItems struct { Links FormLinks `json:"_links"` ID string `json:"id"` LastUpdat...
package main import ( "archive/zip" "context" "encoding/json" "errors" "fmt" "io" "io/ioutil" "log" "math" "net/http" "net/url" "os" "reflect" "strings" "time" "github.com/ourrootsorg/cms-server/utils" "gocloud.dev/pubsub" "github.com/disintegration/imaging" "gocloud.dev/blob" "github.com/aws/a...
package restapi // //Copyright 2019 Telenor Digital AS // //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...
package main import ( "fmt" . "github.com/asuahsahua/advent2019/cmd/common" . "github.com/stretchr/testify/assert" "regexp" "testing" ) func TestConfirmedAnswer(t *testing.T) { jupiter := NewJupiterStr(PuzzleInput) jupiter.StepTime(1000) Equal(t, 7722, jupiter.TotalEnergy()) // How many steps does it take t...
/* Sniperkit-Bot - Status: analyzed */ // Copyright 2015-present, Cyrill @ Schumacher.fm and the CoreStore 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://w...
package fsmc // DO NOT EDIT THIS FILE. GENERATED BY xgen. import ( "bits" "mmio" "unsafe" "stm32/o/f10x_md/mmap" ) type FSMC_Bank2_Periph struct { PCR2 RPCR2 SR2 RSR2 PMEM2 RPMEM2 PATT2 RPATT2 _ uint32 ECCR2 RECCR2 } func (p *FSMC_Bank2_Periph) BaseAddr() uintptr { return uintptr(unsafe.Pointer(p...
// Go support for Protocol Buffers - Google's data interchange format // // Copyright 2015 The Go Authors. All rights reserved. // https://github.com/golang/protobuf // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met...
// Copyright 2019 Yunion // // 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...
// +build f10x_md package cec // DO NOT EDIT THIS FILE. GENERATED BY xgen. import ( "bits" "mmio" "unsafe" "stm32/o/f10x_md/mmap" ) type CEC_Periph struct { CFGR RCFGR OAR ROAR PRES RPRES ESR RESR CSR RCSR TXD RTXD RXD RRXD } func (p *CEC_Periph) BaseAddr() uintptr { return uintptr(unsafe.Pointer...
// Copyright 2020 OpenTelemetry 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 statsd import ( "bytes" "compress/zlib" "context" "fmt" "io" "io/ioutil" "net/http" "strings" "sync" "sync/atomic" "time" "github.com/ash2k/stager/wait" "github.com/cenkalti/backoff" "github.com/golang/protobuf/proto" "github.com/sirupsen/logrus" "github.com/spf13/viper" "github.com/tilinna/c...
package metrics import ( "context" "time" "go.opencensus.io/stats" "go.opencensus.io/stats/view" "go.opencensus.io/tag" rpcmetrics "github.com/filecoin-project/go-jsonrpc/metrics" _ "github.com/influxdata/influxdb1-client" "github.com/EpiK-Protocol/go-epik/blockstore" ) // Distribution var defaultMilliseco...
// Copyright 2018 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
// Unless explicitly stated otherwise all files in this repository are licensed // under the Apache License Version 2.0. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2016-present Datadog, Inc. package legacy import ( "encoding/csv" "fmt" "net/url" "strconv" "s...
// +build integration package sqldb_test import ( "database/sql" "fmt" "testing" "time" "github.com/hyperledger/burrow/vent/config" "github.com/hyperledger/burrow/vent/sqldb" "github.com/hyperledger/burrow/vent/sqldb/adapters" "github.com/hyperledger/burrow/vent/sqlsol" "github.com/hyperledger/burrow/vent/t...
// SPDX-License-Identifier: Apache-2.0 // Copyright (c) 2020-2021 Intel Corporation package daemon import ( "context" "fmt" "github.com/smart-edge-open/sriov-fec-operator/sriov-fec/pkg/common/utils" "github.com/sirupsen/logrus" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/types" "k8s.io/apimachin...
package tsdb import ( "bytes" "context" "encoding/binary" "errors" "fmt" "os" "path/filepath" "sort" "sync" "github.com/cespare/xxhash" "github.com/influxdata/influxdb/kit/tracing" "github.com/influxdata/influxdb/logger" "github.com/influxdata/influxdb/models" "github.com/influxdata/influxdb/pkg/binaryu...
// Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package shavite import ( "fmt" "github.com/phoreproject/go-x11/aesr" "github.com/phoreproject/go-x11/hash" ) // HashSize holds the size of a hash in bytes. const HashSize = int(64) // BlockSize holds the size of a...
package metrics import ( "context" "encoding/json" "fmt" "io/ioutil" "math" "net/url" "os" "path" "reflect" "strconv" "sync" "time" "git.sr.ht/~spc/go-log" "github.com/golang/snappy" "github.com/project-flotta/flotta-operator/models" config_util "github.com/prometheus/common/config" "github.com/prom...
/* * Ceph Nano Core (C) 2019 Red Hat, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
package asr import ( "bytes" "crypto/hmac" "crypto/sha1" "encoding/base64" "encoding/json" "fmt" "net/http" "net/url" "runtime/debug" "sort" "strconv" "sync" "time" "github.com/google/uuid" "github.com/gorilla/websocket" "github.com/tencentcloud/tencentcloud-speech-sdk-go/common" ) // SpeechRecognit...
/* Copyright 2015 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 printer import ( "bytes" "encoding/json" "fmt" "io" "log" "strings" "github.com/alecthomas/template" "github.com/tab1293/ghz" ) const ( barChar = "∎" ) // ReportPrinter is used for printing the report type ReportPrinter struct { Out io.Writer Report *ghz.Report } // Print the report using the...
// 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
// Copyright © 2019 The Homeport Team // // 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, publis...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1-devel // protoc v3.19.1 // source: datasource.proto package pb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/...
// Copyright (C) 2010, <NAME> <<EMAIL>>. All rights reserved. package log4go import ( "fmt" "io" "os" "path/filepath" "strings" "sync" "time" ) type RotType int32 const ( ROT_TYPE_DAY = RotType(1) ROT_TYPE_HOUR = RotType(2) // rotate file suffix DEF_ROT_TIME_SUFFIX_DAY = "2006-01-02" DEF_ROT_TIME_SUF...
/* 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...
package acceptance_tests import ( "bytes" "crypto/tls" "fmt" "io" "path/filepath" "strings" "time" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/onsi/gomega/gbytes" "github.com/onsi/gomega/gexec" ) /* Tests support for external certificate lists. Test structure: 1. Deploy HAProxy wi...
// Copyright (c) 2016 <NAME> // Licensed under the MIT License. package cplex import ( "fmt" "math" "math/rand" "reflect" "strings" "github.com/meirizarrygelpi/numbers/maclaurin" "github.com/meirizarrygelpi/numbers/pade" ) // A Float64 is a complex number with float64 components. type Float64 struct { l, r ...
// Copyright (c) 2021 Terminus, 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 agree...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/data/dns/v2alpha/dns_table.proto package envoy_data_dns_v2alpha import ( fmt "fmt" matcher "github.com/cilium/proxy/go/envoy/type/matcher" _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "g...
// Copyright 2015 <NAME>. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "bytes" "flag" "fmt" "go/ast" "go/build" "go/doc" "go/printer" "go/scanner" "go/token" "io" "io/ioutil" "path" "path/filepath" "reg...
/* 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 distributed under the License...
// Peripheral: GPIO_Periph General Purpose I/O. // Instances: // GPIOA mmap.GPIOA_BASE // GPIOB mmap.GPIOB_BASE // GPIOC mmap.GPIOC_BASE // GPIOD mmap.GPIOD_BASE // GPIOE mmap.GPIOE_BASE // GPIOF mmap.GPIOF_BASE // GPIOG mmap.GPIOG_BASE // GPIOH mmap.GPIOH_BASE // GPIOI mmap.GPIOI_BASE // GPIOJ mma...
/* * Copyright 2019 SAP SE or an SAP affiliate company. All rights reserved. This 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 this file except in compliance with the Licen...
package color import ( "fmt" "regexp" "strings" ) // output colored text like use html tag. (not support windows cmd) const ( // MatchExpr regex to match color tags // // Notice: golang 不支持反向引用. 即不支持使用 \1 引用第一个匹配 ([a-z=;]+) // MatchExpr = `<([a-z=;]+)>(.*?)<\/\1>` // 所以调整一下 统一使用 `</>` 来结束标签,例如 "<info>some tex...
// Copyright 2017 The nats-operator 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...
// Deprecated, Remove Later package types import ( "errors" "fmt" "os" "strconv" "strings" "time" "github.com/Dataman-Cloud/swan/utils" "github.com/Dataman-Cloud/swan/utils/dfs" ctypes "github.com/aanand/compose-file/types" "github.com/docker/go-connections/nat" ) var swanDomain string func init() { swan...
// Copyright © 2019 The Things Network Foundation, The Things Industries B.V. // // 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 // // Un...
package scheduler import ( "errors" "fmt" "r3/backup" "r3/bruteforce" "r3/config" "r3/data" "r3/db" "r3/ldap/ldap_import" "r3/log" "r3/mail/attach" "r3/mail/receive" "r3/mail/send" "r3/repo" "r3/schema" "r3/tools" "sync" "time" "github.com/gofrs/uuid" ) type schedule struct { // states interval ...
// Copyright 2020 WHTCORPS INC, 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: test.proto // protoc -I=${GOPATH}/src -I=. test.proto --go_out=plugins=grpc,Mbase.proto=github.com/tal-tech/go-zero/tools/goctl/rpc:./test package test import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" rpc "github.com/tal-tec...
package testsuite import ( "crypto/tls" "fmt" "io" "io/ioutil" "math/rand" "net/http" "strings" "testing" "time" "github.com/onsi/gomega" "github.com/pkg/errors" "k8s.io/apimachinery/pkg/util/wait" "k8s.io/client-go/dynamic" corev1 "k8s.io/client-go/kubernetes/typed/core/v1" "k8s.io/client-go/rest" "...
// Copyright 2015 The LUCI Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
package openapi import ( "context" "fmt" "go/ast" "go/constant" "go/types" "net/http" "reflect" "runtime/debug" "sort" "strconv" "strings" "github.com/go-courier/httptransport" "github.com/go-courier/httptransport/httpx" "github.com/go-courier/httptransport/transformers" "github.com/go-courier/logr" "...
// 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
// Copyright 2020 Google LLC. 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 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...
package collector import ( "fmt" "github.com/jackc/pgx/v4" "github.com/prometheus/client_golang/prometheus" "github.com/weaponry/pgscv/internal/log" "github.com/weaponry/pgscv/internal/model" "github.com/weaponry/pgscv/internal/store" "strconv" "strings" ) const ( // postgresStatementsQuery12 defines query f...
// Copyright 2016-2017 VMware, 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 appli...
/*** Copyright 2014 Cisco Systems Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc (unknown) // source: aserto/api/v2/source.proto package api import ( _ "github.com/aserto-dev/go-grpc/aserto/options/v1" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" protoreflect ...
package dvonn import ( "bytes" "encoding/gob" "encoding/json" "errors" "log" ) type DvonnGame struct { board *DvonnBoard players []Player currentTurn Player gamePhase GamePhase unusedChips int // some props for undo/redo operation HEAD int // an index pointer which shall be pointing to the c...
/* Copyright NetFoundry, 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
// Package vql implements a reflective query interface to traverse Go values. // A vql.Query q describes a sequence of steps in the structure of a compound // value (struct, slice, map). For a value v, vql.Eval(q, v) performs the steps // described by q starting at v, and reports the value obtained. // // Purpose // //...
/* Copyright 2018 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, sof...
// Copyright 2018 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 ...
package invoiced import ( "encoding/json" "testing" ) func TestUnMarshalObject2(t *testing.T) { s := `{ "attempt_count": 0, "autopay": false, "balance": 351.81, "chase": false, "closed": false, "created_at": 1565892968, "csv_url": "https://paragtestcorp.sandbox.invoiced.com/invoices/Do6...
// Copyright 2019-2021 <NAME>. All rights reserved. Use of this source // code is governed by the MIT license that can be found in the LICENSE // file. package shark import ( "bufio" "fmt" "os/exec" "regexp" "strconv" "strings" "sync" "github.com/gcla/gowid/widgets/table" "github.com/gcla/termshark/v2" "g...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.3 // source: proto/defaults.proto package defaultspb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" descriptorpb "google....
package paixingLogic import ( "fmt" "math" "sort" ) type PockPaixing struct { Paixing int NeedParePV bool //是否需要牌型的最大值 PMaxValue int //牌型对应的最大值 MaxValue int MaxType int } //扑克牌类型的定义 const ( POCK_MEI = 1 //梅花 POCK_HEI = 2 //黑桃 POCK_FANG = 3 //方块 POCK_HONG = 4 //红桃 POCK_WANG = 5 ...
/* Package tables provides functions for dealing with table-like structures, such as used by 2DA or IDS resource types. */ package tables import ( "bytes" "io" "strconv" "strings" "regexp" "github.com/InfinityTools/go-ietools" "golang.org/x/text/encoding/charmap" ) // Table contains the necessary infor...
package commands import ( "errors" "fmt" "math" "sort" "strconv" s "strings" "time" "github.com/elastic/hey-apm/conv" "github.com/elastic/hey-apm/strcoll" ) // functions of this type map a subset of attribute names to their (stringified) values // queries are performed against such maps type data func(Test...
package des const ( ENCRYPT = iota DECRYPT ) var initialPermutation []int = []int{ 58, 50, 42, 34, 26, 18, 10, 2, 60, 52, 44, 36, 28, 20, 12, 4, 62, 54, 46, 38, 30, 22, 14, 6, 64, 56, 48, 40, 32, 24, 16, 8, 57, 49, 41, 33, 25, 17, 9, 1, 59, 51, 43, 35, 27, 19, 11, 3, 61, 53, 45, 37, 29, 21, 13, 5, 63, 55, 47, 3...
package jsonresult import ( "math/big" "github.com/incognitochain/go-incognito-sdk-v2/common" ) var ( WaitingPDEContributionPrefix = []byte("waitingpdecontribution-") PDEPoolPrefix = []byte("pdepool-") PDESharePrefix = []byte("pdeshare-") PDETradingFeePrefix = []byte("pdet...
package cvt2sif import ( "encoding/json" "fmt" "io/ioutil" "os" "regexp" eg "github.com/cdutwhu/n3-util/n3errs" "github.com/clbanning/mxj" cfg "github.com/nsip/n3-sif2json/2SIF/config" ) // ----------------------------------------- // // NextAttr : From Spec func NextAttr(obj, fullpath string) (value string...
// Copyright 2017 The go-darwin 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 hdiutil import "os/exec" // makehybridFlag implements a hdiutil makehybrid command flag interface. type makehybridFlag interface { makehybridF...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: room.proto package message import ( context "context" fmt "fmt" _ "github.com/appootb/protobuf/go/api" common "github.com/appootb/protobuf/go/common" _ "github.com/appootb/protobuf/go/permission" proto "github.com/golang/protobuf/proto" _ "google.gola...
package driver import ( "cke/log" "cke/vm/config" "cke/vm/driver/network" "cke/vm/model" "encoding/xml" "fmt" "github.com/pkg/errors" "os/exec" "strings" "sync" ) var ( wg sync.WaitGroup bootVolume *disk metaVolume *disk dataVolume *disk netDev *netw...
package info import ( "encoding/json" "github.com/boxmetrics/boxmetrics-agent/internal/pkg/errors" "github.com/shirou/gopsutil/net" "github.com/shirou/gopsutil/process" "sync" "time" ) // ProcessStat def type ProcessStat struct { Pid number `json:"pid"` Name string ...