text
stringlengths
5.51k
28.1k
// Copyright 2020 The Swarm 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 node import ( "context" "errors" "fmt" "io" "log" "net" "net/http" "path/filepath" "sync" "time" "github.com/ethersphere/bee/pkg/address...
// 2020-04-08 jhseo; The vNic mgmt feature will be deprecated in TB & Spider. package mcir import ( "encoding/json" "fmt" "io/ioutil" "net/http" "strconv" "strings" "github.com/cloud-barista/cb-tumblebug/src/core/common" "github.com/labstack/echo/v4" ) // https://github.com/cloud-barista/cb-spider/blob/mast...
/* Copyright 2021 The KubeEdge Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.12.4 // source: pkg/functions/grpc/watch-pods.proto package grpc import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "ref...
package main // import fyne import ( "fmt" "io/ioutil" "log" "os" "path" "strings" "regexp" "fyne.io/fyne/v2" "fyne.io/fyne/v2/app" "fyne.io/fyne/v2/container" "fyne.io/fyne/v2/layout" "fyne.io/fyne/v2/widget" ) var bows = []string{"prototypecrescent", "rust", "sacrificialbow", "skywardharp", "thestrin...
// Copyright 2014 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
// Copyright 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 gc import ( "github.com/pgavlin/gc/compile/ssa" "github.com/pgavlin/gc/compile/types" "github.com/pgavlin/gc/src" "container/heap" "fmt" ) // Thi...
package schema import ( "fmt" "reflect" "testing" ) type E1 struct { F01 int `schema:"f01"` F02 int `schema:"-"` F03 string `schema:"f03"` F04 string `schema:"f04,omitempty"` F05 bool `schema:"f05"` F06 bool `schema:"f06"` F07 *string `schema:"f07"` F08 *int8 `schema:"f08"` F09 float64 `...
package karmadactl import ( "context" "fmt" "io" "os" "path/filepath" "strings" "sync" "github.com/spf13/cobra" apierrors "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/api/meta" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" metav1beta1 "...
// Protocol buffer representing slices of a tensor // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0-devel // protoc v3.15.8 // source: tensorflow/core/framework/tensor_slice.proto package tensor_slice_go_proto import ( protoreflect "google.golang.org/protobuf/reflect/p...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0-devel // protoc v3.12.0 // source: desc_test_oneof.proto package testprotos import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/p...
// Copyright 2019 The Periph Authors. All rights reserved. // Use of this source code is governed under the Apache License, Version 2.0 // that can be found in the LICENSE file. package rpi import ( "reflect" "testing" ) func TestParseRevision(t *testing.T) { data := []struct { v uint32 r revisionCode }{ /...
/* 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 ...
/* * Copyright (c) 2018, <NAME> <<EMAIL>> * Copyright (c) 2018, University of California, Berkeley * 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 mus...
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package unicode provides Unicode encodings such as UTF-16. package unicode // import "github.com/go-xe2/third/golang.org/x/text/encoding/unicode" import ( ...
/* 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 inference import ( "bufio" "encoding/json" "flag" "fmt" "github.com/HdrHistogram/hdrhistogram-go" "golang.org/x/time/rate" "io/ioutil" "log" "math" "math/rand" "os" "runtime/pprof" "strings" "sync" "sync/atomic" "time" ) const ( labelAllQueries = "All queries" defaultReadSize = 4 << 20 // 4 ...
package encryption import ( "log" "strconv" "strings" ) // Expansion is the implementation of the expansive permutation in the DES algorithm // the function take a slice of 32 strings and return a slice of 48 after the expansion func expansion(s []string) []string { return []string{s[31], s[0], s[1], s[2], s[3],...
package page import ( "bytes" "encoding/binary" "fmt" "sort" ) const ( // Size is the fix size of a page, which is 16KB or 16384 bytes. Size = 1 << 14 // HeaderSize is the fix size of a page header, which is 10 bytes. HeaderSize = 6 ) // Header field offset in page data. const ( idOffset = 0 // byte ...
// <NAME> package main import ( "bufio" "bytes" "fmt" "io/ioutil" "log" "net" "os" "os/exec" "strings" "sync" ) var systemOS string = getOS() var subnet string = "/24" var isVerbose bool = false var isDemo bool = false var isThreaded bool = false var isTarget bool = false var isSingle bool = false var targ...
package core import ( "errors" "fmt" "go/ast" "io" "github.com/go-delve/delve/pkg/proc" ) // A splicedMemory represents a memory space formed from multiple regions, // each of which may override previously regions. For example, in the following // core, the program text was loaded at 0x400000: // Start ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.19.0 // source: envoy/extensions/filters/listener/original_src/v3/original_src.proto package envoy_extensions_filters_listener_original_src_v3 import ( _ "github.com/cncf/xds/go/udpa/annotations" proto "gith...
// Copyright 2016 The etcd-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...
package host import ( "context" "crypto/rand" "crypto/tls" "io" "net" "net/http" "strings" "sync" "sync/atomic" "time" "golang.org/x/crypto/acme/autocert" "github.com/kataras/iris/core/errors" "github.com/kataras/iris/core/netutil" "github.com/lucas-clemente/quic-go/h2quic" ) // Configurator provides ...
// 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 ...
// Copyright 2017 The Prometheus 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...
package backends import ( "errors" "fmt" "strconv" "sync" "time" "runtime/debug" "strings" "github.com/karngyan/go-guerrilla/log" "github.com/karngyan/go-guerrilla/mail" "github.com/karngyan/go-guerrilla/response" ) var ErrProcessorNotFound error // A backend gateway is a proxy that implements the Backen...
package advanced import ( "math" "github.com/tuneinsight/lattigo/v3/ckks" "github.com/tuneinsight/lattigo/v3/ring" "github.com/tuneinsight/lattigo/v3/rlwe" ) // Evaluator is an interface embeding the ckks.Evaluator interface with // additional advanced arithmetic features. type Evaluator interface { // =======...
// Copyright ©2013 The bíogo 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 main import ( "fmt" "math" "os" "sync" "github.com/biogo/boom" "github.com/biogo/illumina" "github.com/biogo/store/kdtree" ) // Offset def...
package k8s import ( "context" "fmt" "strings" "time" spclient "github.com/linkerd/linkerd2/controller/gen/client/clientset/versioned" sp "github.com/linkerd/linkerd2/controller/gen/client/informers/externalversions" spinformers "github.com/linkerd/linkerd2/controller/gen/client/informers/externalversions/serv...
/* * Copyright (c) 2018 XLAB d.o.o * * 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 goyacc -o gopher.go -p sql gopher.y. DO NOT EDIT. //line gopher.y:3 package main import __yyfmt__ "fmt" //line gopher.y:3 import ( "fmt" ) //line gopher.y:12 type sqlSymType struct { yys int val int } const DIGIT = 57346 const LETTER = 57347 const UMINUS = 57348 var sqlToknames = [...]str...
// Copyright (C) 2015-2019 Virgil Security Inc. // // 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 /...
// 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 2015 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 gl import ( "image" "sync" "sync/atomic" "unicode" glfw32 "github.com/go-gl/glfw/v3.2/glfw" "github.com/goxjs/gl" "github.com/goxjs/glfw" "git...
/* 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 steps import ( "context" "fmt" "log" "net/http" "net/url" "path" "strings" "time" routeapi "github.com/openshift/api/route/v1" imageclientset "github.com/openshift/client-go/image/clientset/versioned/typed/image/v1" routeclientset "github.com/openshift/client-go/route/clientset/versioned/typed/rout...
package node import ( "crypto/ecdsa" "fmt" "math/big" "os" "sync" "time" "github.com/harmony-one/bls/ffi/go/bls" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/params" "github.com/harmony-one/harmony/api/client" clientService "github.com/...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.3 // source: tests/gojsonexternal/gojson_external.proto package gojsonexternal import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoim...
package network import ( "net" "errors" "time" "umbrella/models" "fmt" "sync/atomic" "umbrella/utilities" ) type State uint8 type Type int8 const ( V10 Type = 0x10 CMDHEAD byte = 0xAA CMDFOOT byte = 0x55 defaultReadBufferSize = 128 ) // Errors for conn operations var ( ErrConnIsClosed = errors.New("连接已关...
// 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 not...
package chpool import ( "context" "errors" "fmt" "runtime" "strconv" "sync" "syscall" "time" "github.com/jackc/puddle" "github.com/vahid-sohrabloo/chconn" "github.com/vahid-sohrabloo/chconn/column" "github.com/vahid-sohrabloo/chconn/setting" ) var defaultMaxConns = int32(4) var defaultMinConns = int32(0)...
package zeroex import ( "encoding/json" "errors" "fmt" "math/big" "strings" "github.com/0xProject/0x-mesh/ethereum" "github.com/0xProject/0x-mesh/ethereum/wrappers" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/math" signer "github.com/ethereum/go-ethereum/signer/core" "g...
package jwt import ( "encoding/json" "os" "testing" "time" "github.com/effective-security/xlog" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestMain(m *testing.M) { xlog.SetGlobalLogLevel(xlog.DEBUG) retCode := m.Run() os.Exit(retCode) } func TestClaims(t *testing.T) ...
package godown import ( "bytes" "fmt" "io" "regexp" "strings" "unicode" "github.com/mattn/go-runewidth" "golang.org/x/net/html" ) // A regex to escape certain characters // \ : since this is the escape character, become weird if printed literally // * : Used to start bullet lists, and as a delimiter // _ : ...
package documents import ( "context" "fmt" cmpService "github.com/cortezaproject/corteza-server/compose/service" cmpTypes "github.com/cortezaproject/corteza-server/compose/types" "github.com/cortezaproject/corteza-server/discovery/service" "github.com/cortezaproject/corteza-server/pkg/errors" "github.com/cortez...
/* Copyright 2017 The Kubernetes Authors. Copyright 2018 Intel Corporation. SPDX-License-Identifier: Apache-2.0 */ package pmemcsidriver import ( "context" "crypto/tls" "errors" "fmt" "net" "net/http" "os" "os/signal" "path/filepath" "syscall" "time" api "github.com/intel/pmem-csi/pkg/apis/pmemcsi/v1alp...
package ruleguard import ( "fmt" "go/ast" "go/constant" "go/importer" "go/parser" "go/token" "go/types" "io" "path" "strconv" "github.com/quasilyte/go-ruleguard/internal/mvdan.cc/gogrep" "github.com/quasilyte/go-ruleguard/ruleguard/typematch" ) type rulesParser struct { fset *token.FileSet res *GoRu...
package businesslogic import ( "errors" "fmt" "log" "time" ) // PartnershipCompetitionRepresentation specifies the Country, State, Studio, School that a partnership represents // at a Competition type PartnershipCompetitionRepresentation struct { ID int PartnershipCompetitionEntryID i...
package tui import ( "fmt" "os" "strconv" "time" ) // Types of user action const ( Rune = iota CtrlA CtrlB CtrlC CtrlD CtrlE CtrlF CtrlG CtrlH Tab CtrlJ CtrlK CtrlL CtrlM CtrlN CtrlO CtrlP CtrlQ CtrlR CtrlS CtrlT CtrlU CtrlV CtrlW CtrlX CtrlY CtrlZ ESC CtrlSpace // https://apple.st...
// Copyright Contributors to the Open Cluster Management project package metricsclient import ( "bytes" "context" "crypto/tls" "crypto/x509" "encoding/json" "fmt" "io" "io/ioutil" "net" "net/http" "os" "strconv" "strings" "time" "github.com/cenkalti/backoff" "github.com/go-kit/kit/log" "github.com/g...
// Copyright 2019 Sorint.lab // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/config/filter/http/header_to_metadata/v2/header_to_metadata.proto package envoy_config_filter_http_header_to_metadata_v2 import ( fmt "fmt" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/golang/protobuf/proto" math "math" ...
package toolbox import ( "bytes" "errors" "fmt" "io/ioutil" "net" "net/http" "reflect" "strings" "time" ) const ( jsonContentType = "application/json" yamlContentTypeSuffix = "/yaml" textPlainContentType = "text/plain" contentTypeHeader = "Content-Type" ) const ( //MethodGet HTTP GET meothd ...
/* Copyright 2020 Gravitational, 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, soft...
package utils import ( "errors" "fmt" "github.com/shopspring/decimal" "io" "io/ioutil" "reflect" "regexp" "strconv" "strings" "time" "unicode" "unicode/utf8" "github.com/ghetzel/go-stockutil/rxutil" ) var rxExtendedDurations = regexp.MustCompile(`(?i)((?P<number>[\d\.]+)(?P<suffix>[^\d]+))`) const dura...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: wso2/discovery/config/enforcer/service.proto package enforcer import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "goog...
// Copyright 2018 The Periph Authors. All rights reserved. // Use of this source code is governed under the Apache License, Version 2.0 // that can be found in the LICENSE file. package physic import ( "strconv" "time" ) // Distance is a measurement of length stored as an int64 nano metre. // // This is one of the...
package loadtest import ( "bytes" "crypto/sha256" "encoding/json" "fmt" "io/ioutil" "math/rand" "os" "sort" "strings" "sync" "time" "github.com/cenkalti/backoff" log "github.com/sirupsen/logrus" "github.com/twitter/scoot/bazel/cas" "github.com/twitter/scoot/bazel/remoteexecution" "github.com/twitter/...
package crypto11 import ( "crypto" "crypto/rsa" "io" "math/big" "unsafe" pkcs11 "github.com/miekg/pkcs11" "github.com/pkg/errors" ) // PKCS11PrivateKeyRSA contains a reference to a loaded PKCS#11 RSA private key object. type PKCS11PrivateKeyRSA struct { key *PKCS11PrivateKey lib *PKCS11Lib } // Export the ...
package controller import ( "context" "encoding/json" "fmt" "time" log "github.com/sirupsen/logrus" apierr "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/types" "k8s.io/client-go/discovery" "k8s...
/** * 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...
// Copyright © 2019 Oxford Nanopore Technologies. // // 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, m...
/* Copyright 2018 ZTE Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wr...
/* Copyright 2014 Google Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: go-grpc-example/3-server_stream_rpc/proto/server_stream.proto package proto 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/...
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
package zaptextencoder import ( "errors" "math" "testing" "time" "github.com/stretchr/testify/assert" "go.uber.org/zap" "go.uber.org/zap/zapcore" ) func TestTextEncodeEntry(t *testing.T) { type bar struct { Key string `json:"key"` Val float64 `json:"val"` } type foo struct { A s...
// Copyright 2020 the Pinniped contributors. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package integration import ( "bufio" "bytes" "context" "encoding/json" "errors" "fmt" "io" "io/ioutil" "os" "os/exec" "path/filepath" "regexp" "strconv" "strings" "testing" "time" "github.com/scle...
/* Copyright SecureKey Technologies Inc. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package route import ( "encoding/json" "errors" "fmt" "strings" "github.com/google/uuid" "github.com/hyperledger/aries-framework-go/pkg/client/didexchange" "github.com/hyperledger/aries-framework-go/pkg/commo...
package batcher // NOTE: please review this code which organizes operations into batches based on criteria import ( "sync" "time" ) const ( batcherPhaseUninitialized = iota batcherPhaseStarted batcherPhasePaused batcherPhaseStopped ) type IBatcher interface { ieventer WithRateLimiter(rl RateLimiter) IBatche...
package xorm import ( "errors" "fmt" "github.com/go-xe2/xorm/sqlw" "github.com/gohouse/gocar/structEngin" "github.com/gohouse/t" "reflect" "strconv" "strings" "sync" ) var operator = []string{"=", ">", "<", "!=", "<>", ">=", "<=", "like", "not like", "in", "not in", "between", "not between"} type BuilderDe...
package types import ( "fmt" "strconv" "gitlab.com/thorchain/thornode/common" "gitlab.com/thorchain/thornode/common/cosmos" ) // all event types support by THORChain const ( SwapEventType = `swap` StakeEventType = `stake` UnstakeEventType = `unstake` AddEventType = `add` PoolEventType = `po...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.12.3 // source: ship.proto package planetexpress import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtim...
package expr import ( "fmt" "github.com/brimdata/zed" "github.com/brimdata/zed/zcode" "github.com/brimdata/zed/zson" ) // A ShaperTransform represents one of the different transforms that a // shaper can apply. The transforms are represented as a bit flags that // can be bitwise-ored together to create a single...
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package doc import ( "container/vector"; "go/ast"; "go/token"; "regexp"; "sort"; ) // ------------------------------------------------------------------...
package gui import ( "errors" "fmt" "log" "os" "os/exec" "regexp" "runtime" "sort" "strconv" "strings" "github.com/twstrike/coyim/config" "github.com/twstrike/coyim/i18n" rosters "github.com/twstrike/coyim/roster" "github.com/gotk3/gotk3/glib" "github.com/gotk3/gotk3/gtk" ) type gtkUI struct { roste...
// Copyright (c) 2019 Couchbase, 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 w...
package script import ( "bytes" "crypto/sha256" "encoding/binary" "encoding/hex" "encoding/json" "errors" "fmt" "io" "math/big" "reflect" "github.com/dynamicgo/slf4go" "github.com/dynamicgo/xerrors" "github.com/openzknetwork/gochain/internal/base58" "golang.org/x/crypto/ripemd160" ) // Script . type Sc...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: yandex/cloud/loadbalancer/v1/health_check.proto package loadbalancer import ( fmt "fmt" proto "github.com/golang/protobuf/proto" duration "github.com/golang/protobuf/ptypes/duration" _ "github.com/yandex-cloud/go-genproto/yandex/cloud" math "math" ) //...
// Copyright 2014 <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 twentyfour import ( "encoding/xml" "github.com/cydev/zero" "github.com/omniboost/go-24sevenoffice/omitempty" ) type BundleList struct { XMLName xml.Name `xml:"web:BundleList"` AllowDifference bool `xml:"web:AllowDifference"` DirectLedger bool `xml:"web:DirectLedger"` SaveOption in...
package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. import ( "context" "lo-tracker/apps/api/db" "lo-tracker/apps/api/graph/model" "sort" "strconv" ) func (r *queryR...
/////////////////////////////////////////////////////////////////////// // Copyright (c) 2017 VMware, Inc. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 /////////////////////////////////////////////////////////////////////// package identitymanager import ( "encoding/base64" "fmt" "io/ioutil" "net/h...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/user_interest.proto package resources import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" common "google.golang.org/genproto/googleapis/ads/goog...
/* * Copyright (C) 2019 Synopsys, Inc. * * 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 Licens...
// Copyright 2022 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 ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v0/errors/resource_count_limit_exceeded_error.proto package errors // import "google.golang.org/genproto/googleapis/ads/googleads/v0/errors" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Referenc...
package overrides import ( "bytes" "fmt" "go/ast" "go/printer" "go/token" "io" "regexp" "strings" "golang.org/x/tools/go/ast/astutil" "github.com/devfile/api/generator/genutils" "github.com/go-toolsmith/astcopy" "sigs.k8s.io/controller-tools/pkg/genall" "sigs.k8s.io/controller-tools/pkg/loader" "sigs....
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: options/collection_permissions.proto /* Package options is a generated protocol buffer package. It is generated from these files: options/collection_permissions.proto It has these top-level messages: CollectionPermissions FilterOptions FieldPermission...
// Copyright 2010 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 elliptic implements several standard elliptic curves over prime // fields. package elliptic // This package operates, internally, on Jacobian coordi...
package web import ( "bytes" "context" "fmt" "io/ioutil" "net/http" "net/url" "path/filepath" "github.com/gorilla/sessions" "github.com/gorilla/websocket" "github.com/mylxsw/container" "github.com/pkg/errors" ) // WebContext 作为一个web请求的上下文信息 type WebContext struct { response *HttpResponse request *HttpR...
package henchman import ( "bytes" "encoding/json" "fmt" "io/ioutil" "os" "path/filepath" "reflect" "strconv" "strings" "sync" "time" "github.com/flosch/pongo2" "github.com/pborman/uuid" ) var renderLock sync.Mutex type Task struct { Id string Debug bool IgnoreErrors bool `yaml:"igno...
/* * 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 wr...
package cockroach import ( "context" "database/sql" "errors" "fmt" "strings" "time" "unsafe" dtime "github.com/dejaq/prototype/common/time" storageTimeline "github.com/dejaq/prototype/broker/pkg/storage/timeline" "github.com/dejaq/prototype/broker/domain" derrors "github.com/dejaq/prototype/common/errors...
package main import ( "bufio" "bytes" "context" "encoding/json" "flag" "fmt" "io" "io/ioutil" "log" "os" "os/signal" "strings" "sync" "syscall" "text/template" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/client" "github.com/aws/aws-...
package main import ( "os" "fmt" "log" "context" "strings" "sync" "crypto/sha512" "encoding/hex" "google.golang.org/api/iterator" ds "cloud.google.com/go/datastore" //"github.com/daludaluking/ons-sawtooth-sdk/ons_pb2" ) const ( GS1_CODE_TABLE = iota SERVICE_TYPE_TABLE LATEST_BLOCK_INF...
package lnk import ( "encoding/binary" "errors" "math" "strconv" "github.com/andrewstucki/fingerprint/internal" ) const ( vtEmpty uint32 = 0x0000 vtNull uint32 = 0x0001 vtI2 uint32 = 0x0002 vtI4 uint32 = 0x0003 vtR4 uint32 = 0x0004 vtR8 ...
// Copyright (c) 2021 the SC authors. All rights reserved. MIT License. // Package scparse implements parsing and formatting of SC files. // It provides node types that are used to build an abstract syntax tree (AST). // // The Parse function parses SC source text and creates an AST. // // The Format function formats ...
package main import ( "encoding/json" "errors" "fmt" "go/ast" "io" "io/ioutil" "log" "os" "reflect" "runtime" "sync" "time" "github.com/cosmos72/gomacro/ast2" "github.com/cosmos72/gomacro/base" interp "github.com/cosmos72/gomacro/fast" zmq "github.com/pebbe/zmq4" ) // ExecCounter is incremented each ...