text
stringlengths
8.57k
38.1k
// 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 ...
package harfbuzz import ( "testing" tt "github.com/benoitkugler/textlayout/fonts/truetype" "github.com/benoitkugler/textlayout/language" ) // ported from harfbuzz/test/api/test-ot-tag.c Copyright © 2011 Google, Inc. <NAME> func assertEqualTag(t *testing.T, t1, t2 tt.Tag) { if t1 != t2 { t.Fatalf("unexpected ...
package jit import ( "encoding/hex" "fmt" "math" "reflect" "runtime" "runtime/debug" "strings" "unsafe" "github.com/tetratelabs/wazero/wasm" "github.com/tetratelabs/wazero/wasm/buildoptions" "github.com/tetratelabs/wazero/wasm/wazeroir" ) type engine struct { // These fields are used and manipulated by J...
// Copyright 2017 Google 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 writi...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/api/v2/endpoint/endpoint_components.proto package envoy_api_v2_endpoint import ( fmt "fmt" _ "github.com/cncf/udpa/go/udpa/annotations" core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core" _ "github.com/envoyproxy/protoc-gen-validate/val...
package gt_test import ( "fmt" "testing" "time" "github.com/mitranim/gt" ) func TestNullDate(t *testing.T) { t.Run(`String`, func(t *testing.T) { eq(``, gt.NullDateFrom(0, 0, 0).String()) eq(`0001-01-01`, gt.NullDateFrom(1, 1, 1).String()) eq(`0000-12-31`, gt.NullDateFrom(1, 1, 0).String()) }) t.Run(`A...
/* * Copyright 2013-2016 <NAME>, <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 ag...
package chat import ( "context" "fmt" "log" "sync" "time" lru "github.com/hashicorp/golang-lru" "github.com/keybase/client/go/chat/globals" "github.com/keybase/client/go/chat/types" "github.com/keybase/client/go/chat/utils" "github.com/keybase/client/go/libkb" "github.com/keybase/client/go/protocol/chat1" ...
// Copyright The 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 agreed t...
// Package client represents a gRPC polling-based implementation // of an eth2 validator client. package client import ( "bytes" "context" "encoding/binary" "encoding/hex" "fmt" "io" "strconv" "strings" "sync" "time" "github.com/dgraph-io/ristretto" "github.com/gogo/protobuf/proto" ptypes "github.com/gog...
// Copyright 2012 The Probab Authors. All rights reserved. See the LICENSE file. package dst // Gamma distribution, helper functions. // Scalefactor:= (2^32)^8 = 2^256 = 1.157921e+77 const scalefactor = 1.157920892373162e+77 // If |x| > |k| * M_cutoff, then log[ exp(-x) * k^x ] =~= -x const M_cutoff = Ln2 * ma...
/* Copyright 2020 Authors of Arktos. 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, softw...
package nrgrid // DmrsSchInfo contains information of PDSCH/PUSCH DMRS per antenna port. type DmrsSchInfo struct{ CdmGroup int Delta int } // refer to 3GPP 38.211 vf30 // Table 7.4.1.1.2-1: Parameters for PDSCH DM-RS configuration type 1. // Table 6.4.1.1.3-1: Parameters for PUSCH DM-RS configuration type 1. var ...
package funcs import ( "bytes" "fmt" "os" "path" "path/filepath" "regexp" "strings" "text/template" "unicode" htmltemplate "html/template" "github.com/Masterminds/sprig" "github.com/solo-io/go-utils/log" "github.com/golang/protobuf/protoc-gen-go/descriptor" "github.com/iancoleman/strcase" gendoc "gi...
package data import ( "encoding/json" ) type TUser struct { Id UserID `json:"id"` IsBot bool `json:"is_bot"` FirstName string `json:"first_name"` LastName *string `json:"last_name"` Username *string `json:"username"` Langua...
package main import ( "fmt" "math/rand" "strconv" "strings" "./shared" "github.com/go-humble/router" "github.com/steveoc64/formulate" "honnef.co/go/js/dom" ) func breakLine(s string) string { r := strings.Replace(s, ") ", ")<br>\n", -1) r = strings.Replace(s, "] ", "]<br>\n", -1) r = strings.Replace(s, " ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.21.0 // protoc v3.6.1 // source: github.com/solo-io/gloo-mesh/api/networking/v1/csrf/csrf.proto package csrf import ( reflect "reflect" sync "sync" proto "github.com/golang/protobuf/proto" _ "github.com/golang/protobuf/pty...
// Copyright 2020 IBM Corp. // SPDX-License-Identifier: Apache-2.0 package app import ( "context" "fmt" "os" "strings" "time" "fybrik.io/fybrik/manager/controllers" "fybrik.io/fybrik/pkg/adminconfig" "fybrik.io/fybrik/pkg/environment" local "fybrik.io/fybrik/pkg/multicluster/local" "sigs.k8s.io/controller...
// Copyright 2020 Hewlett Packard Enterprise Development LP package nimbleos // Group - Group is a collection of arrays operating together organized into storage pools. // Export GroupFields for advance operations like search filter etc. var GroupFields *Group func init() { IDfield := "id" Namefield := "name" Smt...
package singularity import ( "encoding/json" "errors" "fmt" "io/ioutil" "log" "math/rand" "net" "net/http" "strconv" "strings" "sync" "time" "github.com/miekg/dns" "github.com/nccgroup/singularity/golang" ) /*** General Stuff ***/ //DNSRebindingStrategy maps a DNS Rebinding strat...
// 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. // “Abstract” syntax representation. package ir import ( "fmt" "go/constant" "sort" "cmd/compile/internal/base" "cmd/compile/internal/types" "cmd/inter...
package spi // DO NOT EDIT THIS FILE. GENERATED BY xgen. import ( "bits" "mmio" "unsafe" "stm32/o/f303xe/mmap" ) type SPI_Periph struct { CR1 RCR1 CR2 RCR2 SR RSR DR RDR CRCPR RCRCPR RXCRCR RRXCRCR TXCRCR RTXCRCR I2SCFGR RI2SCFGR I2SPR RI2SPR } func (p *SPI_Periph) BaseAddr() u...
// Copyright 2018 The go-juchain Authors // This file is part of the go-juchain library. // // The go-juchain library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, o...
package session import ( "encoding/json" "fmt" "github.com/df-mc/dragonfly/server/block" "github.com/df-mc/dragonfly/server/block/cube" "github.com/df-mc/dragonfly/server/entity" "github.com/df-mc/dragonfly/server/entity/effect" "github.com/df-mc/dragonfly/server/internal/nbtconv" "github.com/df-mc/dragonfly/s...
// Copyright 2018 The Cockroach Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package apigateway import ( "context" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/internal/awsutil" "github.com/aws/aws-sdk-go-v2/private/protocol" ) // Request to describe an existing Method resource. type GetMethodInput ...
package main import ( "compress/gzip" "crypto/tls" "encoding/json" "net" "net/http" "net/http/httputil" _url "net/url" "os" "runtime" "strconv" "time" "github.com/coyove/common/config" "github.com/coyove/common/logg" "github.com/coyove/common/lru" "github.com/coyove/goflyway/cmd/goflyway/lib" "github....
package gocbcore const ( goCbCoreVersionStr = "v8.0.0-beta.1" ) type commandMagic uint8 const ( reqMagic = commandMagic(0x80) resMagic = commandMagic(0x81) altReqMagic = commandMagic(0x08) altResMagic = commandMagic(0x18) ) type frameExtraType uint16 const ( srvDurationFrameExtra = frameExtraType(0) ...
package ovn import ( "fmt" "net" "time" "github.com/ovn-org/ovn-kubernetes/go-controller/pkg/cni/types" "github.com/ovn-org/ovn-kubernetes/go-controller/pkg/config" "github.com/ovn-org/ovn-kubernetes/go-controller/pkg/metrics" "github.com/ovn-org/ovn-kubernetes/go-controller/pkg/ovn/ipallocator" util "github....
/* Copyright (c) 2021 Cisco Systems and/or its affiliates. Licensed under the Apache License, Version 2.0 (the "License"); that can be found in the LICENSE file in the root of the source tree. */ package dns_utils import ( "crypto/sha256" "emu/core" "emu/plugins/transport" "encoding/binary" "external/google/gopa...
// Copyright The Linux Foundation and each contributor to CommunityBridge. // SPDX-License-Identifier: MIT package repositories import ( "context" "errors" "fmt" "strconv" "github.com/communitybridge/easycla/cla-backend-go/events" "github.com/communitybridge/easycla/cla-backend-go/github_organizations" "gith...
package main import ( "sync" "sync/atomic" "github.com/lightningnetwork/lnd/lnrpc" "github.com/lightningnetwork/lnd/lnwallet" "github.com/lightningnetwork/lnd/lnwire" "github.com/roasbeef/btcd/btcec" "github.com/roasbeef/btcd/txscript" "github.com/roasbeef/btcd/wire" "github.com/roasbeef/btcutil" "github.c...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v4.0.0 // source: proto/TokenCreate.proto package proto import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/ru...
package gateway import ( "fmt" "go/ast" "go/constant" stdtypes "go/types" "path/filepath" "sort" stdstrings "strings" "github.com/swipe-io/strcase" "github.com/swipe-io/swipe/v2/internal/domain/model" "github.com/swipe-io/swipe/v2/internal/errors" "github.com/swipe-io/swipe/v2/internal/graph" "github.com/...
/* Copyright 2020 The go-harbor 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, s...
// The MIT License (MIT) // Copyright (c) 2014 <NAME>, eduToolbox<EMAIL> GmbH, <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 th...
/* Copyright 2017 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 gingen import ( "fmt" "net/http" "strings" "google.golang.org/genproto/googleapis/api/annotations" "google.golang.org/protobuf/compiler/protogen" "google.golang.org/protobuf/proto" "google.golang.org/protobuf/types/descriptorpb" "google.golang.org/protobuf/types/pluginpb" ) // ProtocPlugin is a plugi...
package config import ( "bytes" "encoding/json" "errors" "fmt" "io/ioutil" "log" "math" "net" "os" "strconv" "strings" "time" portscanner "github.com/nknorg/go-portscanner" "github.com/nknorg/nkn/common" "github.com/nknorg/nkn/crypto/ed25519" "github.com/nknorg/nkn/crypto/ed25519/vrf" "github.com/nkn...
// +build !windows package varnish import ( "bytes" "fmt" "strings" "testing" "time" "github.com/influxdata/telegraf/internal" "github.com/influxdata/telegraf/testutil" "github.com/stretchr/testify/assert" ) func fakeVarnishStat(output string, useSudo bool, InstanceName string, Timeout internal.Duration) fu...
package isdomain // TLDs is a set of TLDs, according to ICANN in 2014. var TLDs = map[string]bool{ "AC": true, "ACADEMY": true, "ACCOUNTANTS": true, "ACTIVE": true, "ACTOR": true, "AD": true, "AE": ...
package istio import ( "errors" "fmt" "strconv" "github.com/gogo/protobuf/types" "github.com/segmentio/ksuid" networkingv1alpha3 "istio.io/api/networking/v1alpha3" securityv1beta1 "istio.io/api/security/v1beta1" v1beta12 "istio.io/api/type/v1beta1" "istio.io/client-go/pkg/apis/networking/v1alpha3" "istio.io...
package huddles import ( "fmt" "hash/fnv" "log" "math" "sort" "strings" "time" "gopkg.in/mgo.v2/bson" "github.com/intervention-engine/fhir/models" "github.com/intervention-engine/fhir/search" "github.com/intervention-engine/fhir/server" ) // HuddleScheduler schedules huddles based on the passed in config...
package raft // // this is an outline of the API that raft must expose to // the service (or tester). see comments below for // each of these functions for more details. // // rf = Make(...) // create a new Raft server. // rf.Start(command interface{}) (index, term, isleader) // start agreement on a new log entry ...
package storageimpl import ( "context" "fmt" "io" "github.com/hannahhoward/go-pubsub" "github.com/ipfs/go-cid" "github.com/ipfs/go-datastore" "golang.org/x/xerrors" "github.com/filecoin-project/go-address" cborutil "github.com/filecoin-project/go-cbor-util" "github.com/filecoin-project/go-commp-utils/ffiwr...
// Copyright 2015 The etcd Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
// gchat package main import ( //"crypto/sha1" "crypto/tls" "encoding/base64" "fmt" xmpp "github.com/ginuerzh/goxmpp" "github.com/ginuerzh/goxmpp/client" "github.com/ginuerzh/goxmpp/core" "github.com/ginuerzh/goxmpp/xep" "gopkg.in/qml.v0" "io/ioutil" "log" "net/url" "os" "path/filepath" "strings" "sync...
// Code generated by goyacc -o parse_ql.y.go ./parse_ql.y. DO NOT EDIT. //line ./parse_ql.y:1 package temql import __yyfmt__ "fmt" //line ./parse_ql.y:3 import ( "fmt" "github.com/sophon-lab/athena/pkg/lib/prometheus/labels" "github.com/sophon-lab/athena/pkg/lib/prompb" ) //line ./parse_ql.y:11 type yySymType s...
/* Copyright 2021. 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 un...
/* Copyright 2022 The Vitess 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...
// Copyright 2016 Keybase Inc. All rights reserved. // Use of this source code is governed by a BSD // license that can be found in the LICENSE file. package libkbfs import ( "fmt" "sync" "time" "github.com/keybase/client/go/logger" "github.com/keybase/kbfs/kbfsblock" "github.com/keybase/kbfs/tlf" "golang.org...
//go:generate mcube enum -m -p // // Code generated by protoc-gen-go-ext. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.17.1 // source: pkg/role/pb/service.proto package role import ( protoreflect "google.golang.org/protobuf/reflect/protore...
// vgdeck: slide decks for OpenVG // +build linux,arm package main import ( "bufio" "flag" "fmt" "image" _ "image/jpeg" _ "image/png" "io/ioutil" "os" "strconv" "strings" "time" "github.com/ajstarks/deck" "github.com/ajstarks/openvg" "github.com/disintegration/gift" ) var StartTime = time.Now() var fi...
package bitmex import ( "bytes" "encoding/json" "fmt" "log" "strconv" "time" "github.com/gorilla/websocket" "github.com/thrasher-/gocryptotrader/common" "github.com/thrasher-/gocryptotrader/config" exchange "github.com/thrasher-/gocryptotrader/exchanges" "github.com/thrasher-/gocryptotrader/exchanges/reque...
// Copyright 2020 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 2018 The Fuchsia 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" "debug/elf" "encoding/binary" "encoding/hex" "encoding/json" "flag" "fmt" "io/ioutil" "os" "os/exec" "...
// Copyright 2018 The Hugo 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 ...
package models import ( "bytes" "io/ioutil" "os" "path/filepath" "strconv" "strings" "time" "encoding/json" "github.com/PuerkitoBio/goquery" "github.com/astaxie/beego" "github.com/astaxie/beego/logs" "github.com/astaxie/beego/orm" "github.com/engineercms/engineercms/conf" "github.com/engineercms/enginee...
// Copyright (c) 2013-2014 The btcsuite developers // Copyright (c) 2015-2020 The Decred developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package main import ( "crypto/x509" "encoding/pem" "errors" "fmt" "io/ioutil" "net" "os" "path/filepath" "runt...
package evtc import ( "encoding/binary" "math" "time" "github.com/davecgh/go-spew/spew" "github.com/google/uuid" "github.com/pkg/errors" "golang.org/x/text/language" ) // Event is the base interface all events implement. type Event interface { // Time returns the local and server time of this event. // This...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 // source: wso2/discovery/config/enforcer/jwt_issuer.proto package enforcer import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "g...
package app import ( "bytes" "encoding/hex" "flag" "fmt" "io/ioutil" "math/rand" "os" "sort" "testing" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/server" sdk "github.com/cosmos/cosmos-sdk/types" sdkErrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/x...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.17.3 // source: laptop_message.proto package pb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.or...
//line eqn.y:5 package web import __yyfmt__ "fmt" //line eqn.y:6 import ( "errors" "strconv" ) //line eqn.y:15 type yySymType struct { yys int f func([]int) int v func([]int) []int } const LNUM = 57346 const LVAR = 57347 const LIN = 57348 const EOF = 57349 const LOROR = 57350 const LANDAND = 57351 const LN...
//go:build go1.16 // +build go1.16 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the cod...
package pool import ( "bufio" "bytes" "encoding/binary" "encoding/hex" "encoding/json" "errors" "fmt" "io" "math/big" // "math/big" "net" "strconv" "strings" "time" "github.com/HyperspaceApp/Hyperspace/encoding" "github.com/HyperspaceApp/Hyperspace/modules" "github.com/HyperspaceApp/Hyperspace/persis...
// Code generated by protoc-gen-go. // source: google/rpc/error_details.proto // DO NOT EDIT! /* Package errdetails is a generated protocol buffer package. It is generated from these files: google/rpc/error_details.proto It has these top-level messages: RetryInfo DebugInfo QuotaFailure BadRequest RequestInfo ...
// Copyright (C) 2017 Google 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 t...
package gorgonia import ( "testing" "gonum.org/v1/gonum/blas" "gonum.org/v1/gonum/blas/gonum" "gorgonia.org/tensor" ) var gonumImpl = gonum.Implementation{} // testBLASImplementation of the interface type testBLASImplementation struct { used bool } // Sdsdot computes the dot product of the two vectors plus a ...
package service import ( "context" "errors" "fmt" "io/ioutil" "net" "os" "path/filepath" "runtime" "strconv" "strings" "sync" "time" "github.com/container-storage-interface/spec/lib/go/csi" "github.com/dell/csi-vxflexos/v2/core" "github.com/dell/csi-vxflexos/v2/k8sutils" "github.com/dell/dell-csi-exte...
package tibctesting import ( "bytes" "fmt" "testing" "time" "github.com/stretchr/testify/require" abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/crypto/tmhash" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" tmprotoversion "github.com/tendermint/tender...
package paxos // // Paxos library, to be included in an application. // Multiple applications will run, each including // a Paxos peer. // // Manages a sequence of agreed-on values. // The set of peers is fixed. // Copes with network failures (partition, msg loss, &c). // Does not store anything persistently, so canno...
// Copyright (c) 2018 <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 image import ( "encoding/binary" "syscall" "gate.computer/gate/internal/file" "gate.computer/gate/internal/manifest" "gate.computer/gate/internal/var...
package ds import ( "context" "fmt" "sync" "time" "github.com/Sirupsen/logrus" "github.com/rcrowley/go-metrics" "github.com/square/p2/pkg/alerting" "github.com/square/p2/pkg/ds/fields" ds_fields "github.com/square/p2/pkg/ds/fields" "github.com/square/p2/pkg/health/checker" "github.com/square/p2/pkg/labels...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: tool_execution_snapshot.proto package execute 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" tool "github.com/easyopsa...
// Package lwallet implements logic of the wallet // It is not a complete wallet and only provides basic testing capabilities for rpc currently package lwallet import ( "encoding/hex" "github.com/copernet/copernicus/conf" "github.com/copernet/copernicus/crypto" "github.com/copernet/copernicus/log" "github.com/cop...
// Copyright 2017 Google 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...
package huobi import ( "encoding/json" "errors" "log" "strconv" "strings" "fmt" simplejson "github.com/bitly/go-simplejson" "github.com/gpmn/sheep/consts" "github.com/gpmn/sheep/proto" ) // LoanOrder : type LoanOrder struct { AccountID int `json:"account-id"` AccruedAt int `json:"accr...
package raft // // this is an outline of the API that raft must expose to // the service (or tester). see comments below for // each of these functions for more details. // // rf = Make(...) // create a new Raft server. // rf.Start(command interface{}) (index, term, isleader) // start agreement on a new log entry ...
// Code generated by main. DO NOT EDIT. package caaa_014_001_04 import ( "bytes" "encoding/base64" "encoding/xml" "time" ) type AcceptorDiagnosticResponse4 struct { Envt CardPaymentEnvironment43 `xml:"urn:iso:std:iso:20022:tech:xsd:caaa.014.001.04 Envt"` TMSTrggr TMSTrigger1 `xml:"urn:iso:std:...
// Package prober provides black-box monitoring mechanisms. // // To use, define Probe() and Alert() on a type, then pass it to NewProbe: // struct FooProber{ someState int } // // // Probe "Foo". E.g. do a network call and compare it to what // // was expected. // func (p FooProber) Probe() Result { // // ...
package promunifi import ( "github.com/prometheus/client_golang/prometheus" "golift.io/unifi" ) type uap struct { // Ap Traffic Stats ApWifiTxDropped *prometheus.Desc ApRxErrors *prometheus.Desc ApRxDropped *prometheus.Desc ApRxFrags *prometheus.Desc ApRxCrypts *prometh...
// Copyright 2015 <NAME> and The Caddy 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...
package docker import ( "context" "encoding/json" "fmt" "io" "regexp" "strconv" "strings" "sync" "time" "github.com/docker/docker/api/types" "github.com/docker/docker/client" "github.com/influxdata/telegraf" "github.com/influxdata/telegraf/filter" "github.com/influxdata/telegraf/internal" "github.com/i...
// 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. // The objc package takes the result of an AST traversal by the // importers package and uses the clang command to dump the type // information for the referenc...
// Copyright (c) 2015-2016 The btcsuite developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package blockchain import ( "fmt" "github.com/coinsuite/btcutil" "github.com/coinsuite/coind/chaincfg/chainhash" "github.com/coinsuite/coind/database" "github.com...
/* * Copyright 2018 <NAME>, Inc. and Contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
/* Copyright 2019 The Vitess 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...
// Copyright 2017 Google 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...
package userlookup import ( "io/ioutil" "net/http" "strconv" "sync" "time" ) // Website is used as the response type of the Se type Website struct { Title string Domain string Delete string Valid bool Extra string } var results []Website // UserLookup returns a slice of type Website func UserLookup(use...
/* Copyright SecureKey Technologies Inc. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package startcmd import ( "crypto/tls" "encoding/json" "fmt" "net/http" "strconv" "strings" "time" "github.com/gorilla/mux" "github.com/hyperledger/aries-framework-go/pkg/crypto/tinkcrypto" ariesapi "githu...
// 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 bufio implements buffered I/O. It wraps an FileReader or io.Writer // object, creating another object (Reader or Writer) that also implements // the...
// Quick and dirty powerdns exporter. Grabs metrics by the control socket and // does a port mapping. package main import ( "flag" "fmt" "net/http" _ "net/http/pprof" "bytes" "github.com/julienschmidt/httprouter" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0-devel // protoc v3.17.3 // source: stroeer/page/article/v1/article_page.proto package article import ( v1 "github.com/stroeer/tapir/go/stroeer/core/v1" v11 "github.com/stroeer/tapir/go/stroeer/page/stage/v1" protoreflec...
// generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go package orm import ( "database/sql" "encoding/json" "errors" "fmt" "io/ioutil" "log" "os" "path/filepath" "sort" "time" "gorm.io/gorm" "github.com/tealeg/xlsx/v3" "github.com/fullstack-lang/gongdoc/go/models" ) // dummy variable to...
package gcse import ( "context" "crypto/tls" "encoding/gob" "encoding/json" "errors" "fmt" godoc "go/doc" "log" "net/http" "net/url" "regexp" "strings" "sync" "time" "unicode/utf8" "github.com/daviddengcn/gddo/doc" "github.com/daviddengcn/go-easybi" "github.com/daviddengcn/go-villa" "github.com/dav...
/* * Copyright 2016-2018 <NAME>, Inc. * * This file is available under the Apache License, Version 2.0, * with the Commons Clause restriction. */ package worker import ( "fmt" "sort" "strings" "time" "github.com/dgraph-io/badger" "golang.org/x/net/context" "golang.org/x/net/trace" "github.com/dgraph-io...
package db import ( "container/heap" "errors" "expvar" "fmt" "sort" "strings" "sync" "time" "github.com/couchbase/sync_gateway/auth" "github.com/couchbase/sync_gateway/base" "github.com/couchbase/sync_gateway/channels" ) const ( DefaultCachePendingSeqMaxNum = 10000 // Max number of waiting se...
package main import ( "fmt" "go/ast" "go/token" "go/types" "os" "path/filepath" "reflect" "strings" "unicode" "unicode/utf8" "github.com/rsms/go-log" "golang.org/x/tools/go/packages" ) type EntInfo struct { pkg *Package srcdir string pos token.Pos sname string name ...
// generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go package orm import ( "database/sql" "encoding/json" "errors" "fmt" "io/ioutil" "log" "os" "path/filepath" "sort" "time" "gorm.io/gorm" "github.com/tealeg/xlsx/v3" "github.com/fullstack-lang/gongsvg/go/models" ) // dummy variable to...