text
stringlengths
5.51k
28.1k
/* Copyright 2018 The Kubegene 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...
package ast import ( "fmt" "strings" "unicode" "unicode/utf8" ) type TokenType int type stateFn func(*lexer) stateFn const eof = -1 const ( TokenError TokenType = iota TokenEOF TokenVar TokenDBRP TokenAsgn TokenDot TokenPipe TokenAt TokenIdent TokenReference TokenLambda TokenNumber TokenString To...
package prometheus import ( // Go stdlib and other packages "context" "fmt" "io" "math" "mime" "net/http" "net/url" "time" "github.com/influxdata/flux/runtime" "github.com/matttproud/golang_protobuf_extensions/pbutil" // Flux packages "github.com/influxdata/flux" "github.com/influxdata/flux/codes" "g...
// 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 2018 The gg Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
package minecraft import ( "math/rand" "time" "vimagination.zapto.org/boolmap" "vimagination.zapto.org/minecraft/nbt" ) var ( levelRequired = map[string]nbt.TagID{ "LevelName": nbt.TagString, "SpawnX": nbt.TagInt, "SpawnY": nbt.TagInt, "SpawnZ": nbt.TagInt, } ) // Level is the base type for m...
/* The MIT License (MIT) Copyright (c) 2021 <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, publis...
package iperf import ( "context" "encoding/json" "errors" "fmt" "github.com/google/uuid" "io" "io/ioutil" "log" "os" "strings" ) func NewClient(host string) *Client { json := true proto := Protocol(PROTO_TCP) time := 10 length := "128KB" streams := 1 c := &Client{ Options: &ClientOptions{ JSON: ...
// Copyright 2019 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
// Package demozoo interacts with the demozoo.org API for data scraping and file downloads. package demozoo import ( "crypto/md5" // nolint: gosec "crypto/sha512" "database/sql" "errors" "fmt" "io" "net/http" "os" "path/filepath" "strconv" "strings" "time" "github.com/gookit/color" //nolint:misspell "g...
package tests import ( "bytes" "context" "fmt" "os" "os/exec" "path" "strings" "sync" "time" "github.com/onsi/ginkgo/v2" "github.com/onsi/ginkgo/v2/formatter" "github.com/onsi/ginkgo/v2/reporters" "github.com/onsi/ginkgo/v2/types" "github.com/onsi/gomega" "github.com/scylladb/scylla-operator/pkg/cmduti...
package backup /* * This file contains structs and functions related to executing specific * queries to gather metadata for the objects handled in predata_shared.go. */ import ( "database/sql" "fmt" "sort" "github.com/greenplum-db/gp-common-go-libs/dbconn" "github.com/greenplum-db/gp-common-go-libs/gplog" "...
package main import ( "encoding/json" "fmt" ) type LP struct { ID uint64 CreatorID string TokenID uint64 TokenSupply float64 TokenPlatformSupply float64 ExchangeRate float64 // 1 TokenId * ExchangeRate } type User struct { ID string } type Token struct ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 // source: mkit/service/greeter/v1/greeter.proto package greeterv1 import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.gol...
// Copyright 2018 Delivery Hero Germany // // 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 rabbithole import ( "net/url" ) // OsPid is an operating system process ID. type OsPid string // NameDescriptionEnabled represents a named entity with a description. type NameDescriptionEnabled struct { Name string `json:"name"` Description string `json:"description"` Enabled bool `json:"ena...
// Copyright 2015 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, ...
/* * Copyright 2020 The Dragonfly 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 la...
// - Transport independent library for mutation streaming. // - Provide APIs to create KeyVersions. // // TODO: use slab allocated or memory pool to manage KeyVersions // TODO: change KeyVersions command to a specific type. package common import ( "bytes" "encoding/binary" "fmt" "strings" "github.com/couchbase/...
// Copyright 2018 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 appl...
package packer import ( "bytes" "fmt" "github.com/hashicorp/go-version" "github.com/mitchellh/mapstructure" jsonutil "github.com/mitchellh/packer/common/json" "io" "io/ioutil" "os" "sort" "text/template" "time" ) // The rawTemplate struct represents the structure of a template read // directly from a file....
package main import ( "bufio" "flag" "fmt" "net" "strconv" "sync" "time" ) type rowsFromWorkers struct { topRow []byte bottomRow []byte } // Removes a given connection and its corresponding messages channel from slices func removeConnection(connectionToRemove net.Conn, connectionSlice *[]net.Conn, messagesS...
// Copyright 2016 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 (C) 2017 <NAME>. All Rights Reserved. package handler_test import ( "context" "encoding/json" "errors" "fmt" "strconv" "testing" "github.com/creachadair/jrpc2" "github.com/creachadair/jrpc2/code" "github.com/creachadair/jrpc2/handler" "github.com/google/go-cmp/cmp" ) func y1(context.Context) ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: imports/test_import_all.proto package imports import ( proto "github.com/golang/protobuf/proto" protoapi "github.com/golang/protobuf/protoapi" fmt "github.com/golang/protobuf/v2/cmd/protoc-gen-go/testdata/imports/fmt" test_a_1 "github.com/golang/protobuf...
// 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 wri...
package publish import ( "math/rand" "sync" "testing" "time" "errors" "github.com/drausin/libri/libri/common/ecid" cerrors "github.com/drausin/libri/libri/common/errors" "github.com/drausin/libri/libri/common/id" "github.com/drausin/libri/libri/common/storage" "github.com/drausin/libri/libri/librarian/api"...
package main import ( "crypto/sha1" "encoding/binary" "errors" "io" "log" "math/rand" "net" "os" "strconv" "strings" "time" "github.com/golang/snappy" "golang.org/x/crypto/pbkdf2" cmm "github.com/loveuall/kcptun/common" "github.com/xtaci/kcp-go" "github.com/hashicorp/yamux" "github.com/urfave/cli" ...
/** Overview - Tests the provider specific Machine Controller Prerequisites - secret yaml file for the hyperscaler/provider passed as input - control cluster and target clusters kube-config passed as input (optional) BeforeSuite - Check and create control cluster and target clusters if required - Check and...
/* Copyright 2021-2022 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,...
/* Package blast implements reading of PKWare Data Compression Library (DCL) compressed data, otherwise known as "explode" for "imploded" data The implementation provides functionality that decompresses during reading. For example, to read compressed data from a buffer: r, err := blast.NewReader(&b) io.Copy(os.Std...
// Code generated by protoc-gen-go. // source: vector_tile.proto // DO NOT EDIT! /* Package vector_tile is a generated protocol buffer package. It is generated from these files: vector_tile.proto It has these top-level messages: Tile */ package vector_tile import proto "github.com/golang/protobuf/proto" import fm...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/config/filter/http/gzip/v2/gzip.proto package envoy_config_filter_http_gzip_v2 import ( fmt "fmt" _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/golang/protobuf/proto" wrappers...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: pkg/provenance/graph/graph.proto /* Package graph is a generated protocol buffer package. It is generated from these files: pkg/provenance/graph/graph.proto It has these top-level messages: Node IDs Provenance */ package graph import proto "github.com/...
package main import ( // "flag" "fmt" "io/ioutil" "log" "os" "path" "strconv" "strings" "github.com/Electrostatics/apbs-rest/cli/rest" flag "github.com/spf13/pflag" ) type config struct { Ff []string `json:"ff"` Ffout []string `json:"ffout"` PhCalcMethod []string `json:"ph-calc-method"...
// Copyright 2016 <NAME> and The JoeFriday 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 o...
//nolint:unused,deadcode package auth import ( "encoding/json" "testing" "time" "github.com/cosmos/cosmos-sdk/store" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/x/auth" "github.com/stretchr/testify/mock" "github.com/stretchr/testify/suite" abci "github.com/tendermint/tendermint/abc...
/* * Git * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: 5.0-preview * Contact: <EMAIL> * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package swagger import ( "bytes" "encoding/json" "encodi...
package log import ( "encoding/json" "fmt" "io" "os" "path/filepath" "runtime" "strings" "time" gt "github.com/buger/goterm" "github.com/davecgh/go-spew/spew" ) var L = Empty() var ( colorRed = "\u001b[38;5;196m" colorOrange = "\u001b[38;5;208m" colorYellow = "\u001b[38;5;226m" colorGreen = "\u001...
package collector_mongod import ( "github.com/prometheus/client_golang/prometheus" ) var ( metricsCursorTimedOutTotal = prometheus.NewDesc( prometheus.BuildFQName(Namespace, "metrics_cursor", "timed_out_total"), "timedOut provides the total number of cursors that have timed out since the server process started....
// 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 main import ( "bytes" "context" "encoding/json" "flag" "fmt" "go/ast" "go/parser" "go/printer" "go/scanner" "go/token" "io" "io/fs" "os" ...
/* * Copyright 2018- The Pixie 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 storegateway import ( "context" "fmt" "path/filepath" "strings" "sync" "time" "github.com/go-kit/kit/log" "github.com/go-kit/kit/log/level" "github.com/oklog/ulid" "github.com/pkg/errors" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promauto" ts...
package bitfinex import ( "errors" "fmt" "net/http" "net/url" "reflect" "strconv" "time" "github.com/gorilla/websocket" "github.com/thrasher-/gocryptotrader/common" "github.com/thrasher-/gocryptotrader/currency" exchange "github.com/thrasher-/gocryptotrader/exchanges" "github.com/thrasher-/gocryptotrader/...
package compiler import ( "bytes" "encoding/binary" "fmt" "go/ast" "go/constant" "go/token" "go/types" "net/url" "sort" "strconv" "strings" "text/template" "unicode" "github.com/gopherjs/gopherjs/compiler/analysis" "github.com/gopherjs/gopherjs/compiler/typesutil" ) func (c *funcC...
/* Copyright 2019 The Seldon 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, soft...
package profile import ( "bufio" "fmt" "os" "runtime" "time" "github.com/docker-slim/docker-slim/pkg/app" "github.com/docker-slim/docker-slim/pkg/app/master/commands" "github.com/docker-slim/docker-slim/pkg/app/master/config" "github.com/docker-slim/docker-slim/pkg/app/master/docker/dockerclient" "github.co...
// 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 worker import ( "fmt" "strings" "testing" "github.com/pachyderm/pachyderm/src/client" "github.com/pachyderm/pachyderm/src/client/pkg/require" "github.com/pachyderm/pachyderm/src/client/pps" tu "github.com/pachyderm/pachyderm/src/server/pkg/testutil" ) func TestDatumIterators(t *testing.T) { c := getP...
/* Copyright 2020 The cert-manager Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing...
/* * Copyright (C) 2017 Red Hat, 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 (c) 2020, <NAME>, All rights reserved. package alt_test import ( "fmt" "testing" "time" "github.com/ohler55/ojg" "github.com/ohler55/ojg/alt" "github.com/ohler55/ojg/tt" ) type Dummy struct { Val int Nest interface{} hidden int } type Bummy struct { Dummy Num int } type Rummy struct {...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/enums/external_conversion_source.proto package enums import ( fmt "fmt" math "math" proto "github.com/catper/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors if ...
package controller import ( "encoding/json" "errors" "fmt" "net/http" "os" "regexp" "sort" "strconv" "sync" "time" "github.com/aws/aws-sdk-go/aws" "github.com/spf13/pflag" api "k8s.io/api/core/v1" extensions "k8s.io/api/extensions/v1beta1" "k8s.io/client-go/tools/record" "k8s.io/ingress/core/pkg/ingr...
package controller import ( "context" "fmt" "net" configv1 "github.com/openshift/api/config/v1" operatorv1 "github.com/openshift/api/operator/v1" "github.com/openshift/cluster-dns-operator/pkg/manifests" operatorclient "github.com/openshift/cluster-dns-operator/pkg/operator/client" "github.com/openshift/clus...
// 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 bone implements headers J1, P8 and P9 found on many (but not all) // BeagleBone micro-computer. // // In particular, the headers a...
package syncer import ( "context" "errors" "fmt" "sync" "sync/atomic" "time" "unsafe" "github.com/spacemeshos/go-spacemesh/common/types" "github.com/spacemeshos/go-spacemesh/events" "github.com/spacemeshos/go-spacemesh/layerfetcher" "github.com/spacemeshos/go-spacemesh/log" "github.com/spacemeshos/go-spac...
// SPDX-License-Identifier: Apache-2.0 // Copyright 2016-2020 Authors of Cilium package cmd import ( "fmt" "net" "strings" "time" "github.com/cilium/cilium/api/v1/models" ipamapi "github.com/cilium/cilium/api/v1/server/restapi/ipam" "github.com/cilium/cilium/pkg/api" "github.com/cilium/cilium/pkg/cidr" "git...
/* * 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 ...
// Copyright (c) 2017-2019 Tigera, 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 ...
// Copyright 2013 The Go-IMAP 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 imap import ( "errors" "fmt" "io" "net" "runtime/debug" "sort" "strings" "sync" "time" ) // Timeout arguments for Client.recv. const ( ...
// Bot.go Project // Copyright (C) 2021 <NAME>, ALiwoto // This file is subject to the terms and conditions defined in // file 'LICENSE', which is part of the source code. package trGo import ( "encoding/json" "errors" "fmt" "io/ioutil" "log" "unicode" "net/http" "net/url" "strconv" "strings" ws "github....
// Copyright 2015-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"). You may // not use this file except in compliance with the License. A copy of the // License is located at // // http://aws.amazon.com/apache2.0/ // // or in the "lic...
// Copyright 2018 The Go Cloud Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
package money import ( "strings" ) // Currency represents money currency information required for formatting type Currency struct { Code string Fraction int Grapheme string Template string Decimal string Thousand string } // currencies represents a collection of currency var currencies = map[string]*Curr...
// 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...
/* Copyright 2020 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, ...
// This module contains definitions // for the Calvados model objects. // // This module contains the YANG enumerated type // definitions used by the Cisco IOS-XR SysAdmin // Control Ethernet commands. // // Copyright(c) 2011-2017 by Cisco Systems, Inc. // All rights reserved. // // Copyright (c) 2012-2018 by Cisco ...
package repository import ( "container/list" "context" "fmt" "io/ioutil" "path/filepath" "regexp" "sort" "strings" "time" "github.com/autarch/metagodoc/doc" "github.com/autarch/metagodoc/esmodels" "github.com/autarch/metagodoc/indexer/directory" "github.com/autarch/metagodoc/logger" "code.gitea.io/git"...
// Copyright (c) 2014, <NAME> // rst relies on esc (https://github.com/mjibson/esc) to embed static resources // with go generate (requires go 1.4 or more recent). //go:generate esc -pkg=assets -o=internal/assets/assets.go ./internal/assets /* Package rst implements tools and methods to expose resources in a RESTFul ...
// Copyright (c) 2020 Blockwatch Data Inc. // Author: <EMAIL> package server import ( "encoding/json" "github.com/gorilla/mux" "math/bits" "net/http" "strconv" "time" "blockwatch.cc/packdb/pack" "blockwatch.cc/packdb/vec" "blockwatch.cc/tzindex/chain" "blockwatch.cc/tzindex/etl/index" "blockwatch.cc/tzin...
// 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 diff import ( "bufio" "bytes" "fmt" "io" "io/ioutil" "regexp" "strconv" "gitlab.com/gitlab-org/gitaly/v14/internal/git" "gitlab.com/gitlab-org/gitaly/v14/internal/helper" ) // Diff represents a single parsed diff entry type Diff struct { Binary bool OverflowMarker bool Collapsed bool...
package main import ( "bytes" "fmt" "go/ast" "go/parser" "go/printer" "go/token" "html/template" "io" "os" "path/filepath" "strings" "unicode" "unicode/utf8" "golang.org/x/tools/imports" "myitcv.io/gogenerate" ) const ( rootVar = "root" leafTypeName = "Leaf" nodePrefix = "_Node_" ) type ge...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: orc8r/cloud/go/services/analytics/protos/collector.proto package protos 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/stat...
package suncalc // Translated in GO from the NPM library: // https://github.com/mourner/suncalc import ( "math" "time" ) // date/DayTime constants and conversions const millyToNano = 1000000 const dayMs = 1000 * 60 * 60 * 24 const J1970 = 2440588 const J2000 = 2451545 func timeToUnixMillis(date time.Time) int64...
// Copyright (c) 2013-2016 The btcsuite developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package appmessage import ( "bytes" "fmt" "math" "reflect" "testing" "github.com/kaspanet/kaspad/domain/consensus/utils/constants" "github.com/kaspanet/kaspad/...
package format import ( "bufio" "fmt" "io" "strings" "github.com/cespare/goclj" "github.com/cespare/goclj/parse" ) // A Printer writes a parse tree with proper indentation. type Printer struct { *bufWriter // IndentChar is the character used for indentation // (by default, ' ' is used). IndentChar rune //...
package handler import ( "fmt" "net/http" "os" "regexp" "strings" "github.com/gorilla/mux" common "github.com/ncabatoff/process-exporter" processConfig "github.com/ncabatoff/process-exporter/config" "github.com/ncabatoff/process-exporter/proc" "github.com/prometheus/client_golang/prometheus" "github.com/pr...
package trace import ( "context" "errors" "fmt" "io" "io/ioutil" "net/http" "runtime" "strconv" "strings" "time" "github.com/golang/protobuf/proto" opentracing "github.com/opentracing/opentracing-go" opentracinglog "github.com/opentracing/opentracing-go/log" "github.com/stripe/veneur/ssf" ) // TraceIDH...
package main import ( "fmt" "runtime" "runtime/debug" ) type Addr struct { typ rune /* # (byte addr), l (line addr), / ? . $ + - , ; */ re string left *Addr /* left side of , and ; */ num int next *Addr /* or right side of , and ; */ } type Address struct { r Range f *File } type Cmd struct { addr ...
package plist import ( "bytes" "encoding/binary" "errors" "fmt" "hash/crc32" "io" "math" "runtime" "time" "unicode/utf16" ) type bplistTrailer struct { Unused [5]uint8 SortVersion uint8 OffsetIntSize uint8 ObjectRefSize uint8 NumObjects uint64 TopObject uint64 ...
/* Copyright SecureKey Technologies Inc. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package observer import ( "context" "encoding/json" "fmt" "net/url" "strings" "time" "github.com/ThreeDotsLabs/watermill/message" "github.com/hyperledger/aries-framework-go/pkg/doc/verifiable" "github.com/p...
// Copyright 2016-2019 the u-root Authors. All rights reserved // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package smbios import ( "errors" "fmt" "strings" ) // Much of this is auto-generated. If adding a new type, see README for instructions. // BIOSIn...
// Copyright 2021 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 nistec import ( "crypto/elliptic/internal/fiat" "crypto/subtle" "errors" ) var p384B, _ = new(fiat.P384Element).SetBytes([]byte{ 0xb3, 0x31, 0x2f,...
package graph import ( "sort" "github.com/Tom-Johnston/mamba/ints" "github.com/Tom-Johnston/mamba/sortints" ) //IsPlanar returns true if the graph is a planar graph and false otherwise. The current implementation is simple but runs in O(n^2) while linear time algorithms are known. //TODO Which algorithm does this...
// Sapphire is a complete discord bot framework for Golang with discordgo package sapphire import ( "fmt" "os" "os/signal" "runtime" "strings" "syscall" "time" "github.com/bwmarrin/discordgo" "github.com/dustin/go-humanize" ) // VERSION is a constant representing the current version of the framework. const ...
// 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. // TODO(gri) This file needs to be expanded significantly. package types_test import ( "go/ast" "go/parser" "go/token" "strings" "testing" _ "golang.or...
/* 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 games import ( "fmt" "io/ioutil" "os" "os/exec" "path" "path/filepath" "regexp" "sort" "strconv" "strings" "time" "github.com/zmnpl/twad/cfg" st "github.com/zmnpl/twad/games/savesStats" "github.com/zmnpl/twad/helper" ) // Game represents one game configuration type Game struct { Name ...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: release_idc_rack_unit.proto package custom import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" types "github.com/gogo/protobuf/types" _ "github.com/mwitkow/go-proto-validators" math "math" ) // Reference ...
package main import ( "fmt" "strconv" "strings" "time" "github.com/Shopify/sarama" ) const maxOffset int64 = 1<<63 - 1 type positionRange struct { startAnchor, endAnchor anchor diff anchorDiff } func (r positionRange) start() position { return position{ anchor: r.startAnchor, diff: ...
package ingest import ( "context" "encoding/json" "fmt" "net" "strings" "time" "github.com/dylanratcliffe/sdp-go" log "github.com/sirupsen/logrus" "github.com/dgraph-io/dgo/v200" "github.com/dgraph-io/dgo/v200/protos/api" "google.golang.org/grpc" "google.golang.org/grpc/encoding/gzip" "google.golang.org...
/* 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v0/errors/campaign_budget_error.proto package errors import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt....
package dialogs import ( "github.com/thewug/fsb/pkg/storage" "github.com/thewug/fsb/pkg/api" "github.com/thewug/fsb/pkg/api/tags" "github.com/thewug/fsb/pkg/api/types" "github.com/thewug/fsb/pkg/apiextra" "github.com/thewug/gogram" "github.com/thewug/gogram/data" "github.com/thewug/gogram/dialog" "bytes" ...
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. // +build !windows package pkg import ( "bufio" "bytes" "encoding/gob" "fmt" ...
package jsonx import ( "encoding/json" "io/ioutil" "net" "os" "path/filepath" "reflect" "strconv" "testing" "time" ) type decodeTest struct { in string err error expected interface{} } var decodeTests = []decodeTest{ // basic types {in: "null", expected: nil}, {in: `true`, expected: true}, ...
// Copyright (c) 2018-2021 Zededa, Inc. // SPDX-License-Identifier: Apache-2.0 // Code generated by go-swagger; DO NOT EDIT. package image_configuration // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http...
/* * Tencent is pleased to support the open source community by making Blueking Container Service available., * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except * in compliance with the License. You may obt...