text
stringlengths
5.51k
28.1k
package client import ( "context" "go-common/app/interface/openplatform/article/model" "go-common/library/net/rpc" ) const ( _addArticle = "RPC.AddArticle" _updateArticle = "RPC.UpdateArticle" _delArticle = "RPC.DelArticle" _creationUpperArticles = "RPC.CreationUpperArtic...
package gpu import ( "log" "github.com/jmontupet/gbcore/pkg/coreio" "github.com/jmontupet/gbcore/internal/pkg/ioports" "github.com/jmontupet/gbcore/internal/pkg/mmu/memorymap" ) const ( nbFrameLines = 144 nbFrameRow = 160 oamLength = 80 // 77-83 (80) drawLength = 172 // 169-175 (172) hBlankLength...
// Copyright 2014 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 x86asm implements decoding of x86 machine code. package x86asm import ( "bytes" "fmt" ) // An Inst is a single instruction. type In...
/* Copyright 2016 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 agre...
package deps import ( "fmt" "strings" "github.com/rithvikp/dedalus/analysis/fn" "github.com/rithvikp/dedalus/engine" "golang.org/x/exp/maps" "golang.org/x/exp/slices" ) type DepIO interface { engine.Attribute | *engine.Variable | varOrAttr String() string } type Dep[IO DepIO] struct { Dom []IO C...
// Copyright 2016 <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...
// Copyright 2018 The Cockroach Authors. // // Licensed as a CockroachDB Enterprise file under the Cockroach Community // License (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // https://github.com/cockroachdb/cockroach/blob/master/li...
package elastic import ( "bytes" "context" "encoding/json" "fmt" "net/url" "strings" "time" "go-common/library/ecode" httpx "go-common/library/net/http/blademaster" timex "go-common/library/time" "github.com/pkg/errors" ) const ( // OrderAsc order ascend OrderAsc = "asc" // OrderDesc order descend Or...
// Package gocron : A Golang Job Scheduling Package. // // An in-process scheduler for periodic jobs that uses the builder pattern // for configuration. Schedule lets you run Golang functions periodically // at pre-determined intervals using a simple, human-friendly syntax. // // Inspired by the Ruby module clockwork <...
package pdf import ( "bytes" "github.com/kccm/maroto/pkg/color" "github.com/jung-kurt/gofpdf" "github.com/kccm/maroto/internal" "github.com/kccm/maroto/pkg/consts" "github.com/kccm/maroto/pkg/props" ) // Maroto is the principal abstraction to create a PDF document. type Maroto interface { SetColNum(colNum uin...
package main import ( "bufio" "context" "embed" "flag" "fmt" "io/fs" "net" "net/http" "os" "os/signal" "path/filepath" "r3/activation" "r3/bruteforce" "r3/cache" "r3/cert" "r3/config" "r3/db" "r3/db/embedded" "r3/db/initialize" "r3/db/upgrade" "r3/handler/cache_download" "r3/handler/csv_download"...
/* 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, ...
// Copyright 2015 The go-ethereum Authors // Copyright 2017 The cypherBFT Authors // This file is part of the cypherBFT library. // // The cypherBFT 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 Foundat...
/* 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 (c) 2020, The Emergent 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 pcore import ( "fmt" "log" "strings" "github.com/chewxy/math32" "github.com/emer/leabra/leabra" "github.com/goki/ki/kit" "github.com...
/* 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...
// Copyright ©2015 The Gonum 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 vgsvg uses svgo (github.com/ajstarks/svgo) // as a backend for vg. package vgsvg // import "gonum.org/v1/plot/vg/vgsvg" import ( "bufio" "byte...
package govox import ( "errors" "fmt" "log" "math/rand" "strings" "time" "github.com/donomii/glim" "github.com/go-gl/gl/v3.3-core/gl" "github.com/go-gl/glfw/v3.2/glfw" "github.com/go-gl/mathgl/mgl32" ) var ShowTimings = false var startFrame time.Time type RenderData struct { Points []float32 Colo...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.17.3 // source: tensorflow/core/protobuf/queue_runner.proto package for_core_protos_go_proto import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runt...
package miner import ( "encoding/json" "fmt" "io/ioutil" "net/http" "os" "path/filepath" "regexp" "runtime" "strings" ) // XmrStak implements the miner interface for the xmr-stak miner // https://github.com/fireice-uk/xmr-stak type XmrStak struct { Base name string endpoint string las...
package escpos import ( "encoding/base64" "fmt" "io" "strconv" "strings" "github.com/astaxie/beego/logs" "github.com/qiniu/iconv" ) var beelog = logs.NewLogger(10000) func init() { beelog.SetLogger("console", "") beelog.EnableFuncCallDepth(true) } // text replacement map var textReplaceMap = map[string]st...
/* Copyright 2017 The Kubernetes Authors. SPDX-License-Identifier: Apache-2.0 */ package pmemcsidriver import ( "errors" "fmt" "sync" "golang.org/x/net/context" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" "k8s.io/klog/v2" "github.com/container-storage-interface/...
// Protocol Buffers for Go with Gadgets // // Copyright (c) 2013, The GoGo Authors. All rights reserved. // http://github.com/FJSDS/protobuf // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributi...
// 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...
package process import ( "fmt" "io" "math/rand" "reflect" "strings" "time" "github.com/spf13/cobra" corev1 "k8s.io/api/core/v1" "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" "k8s.i...
// Copyright (C) MongoDB, Inc. 2017-present. // // 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 // // Based on gopkg.in/mgo.v2/bson by <NAME> // Se...
// Copyright 2013 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: tensorflow/core/example/feature.proto package example 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.Errorf var _ = math....
package repositories_test import ( "context" "time" . "github.com/onsi/gomega/gstruct" "code.cloudfoundry.org/cf-k8s-controllers/api/repositories" workloadsv1alpha1 "code.cloudfoundry.org/cf-k8s-controllers/controllers/apis/workloads/v1alpha1" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" corev1 ...
// 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 fmt_test import ( . "fmt"; "io"; "math"; "strings"; "testing"; ) func TestFmtInterface(t *testing.T) { var i1 interface{} i1 = "abc"; s := Spr...
package main import ( "bufio" "bytes" "errors" "fmt" "io" "log" "mime" "net" "net/http" "net/url" "os" "path/filepath" "regexp" "strconv" "strings" "time" ) // Access Control Lists (ACLs) // An ACLDefinitions object contains information about how to assign ACLs to a // request. type ACLDefinitions st...
/* go-update allows a program to update itself by replacing its executable file with a new version. It provides the flexibility to implement different updating user experiences like auto-updating, or manual user-initiated updates. It also boasts advanced features like binary patching and code signing verification. Upd...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.12.2 // source: auth/backend/auth-backend.proto package backend import ( context "context" proto "github.com/golang/protobuf/proto" auth "github.com/roleypoly/rpc/auth" shared "github.com/roleypoly/rpc/sha...
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. // +build appengine // Package dl implements a simple downloads frontend server. // // It accepts HTTP POST requests to create a new download metadata entit...
package handler import ( "context" "crypto/tls" "errors" "fmt" "io" "io/ioutil" "log" "net" "net/http" "net/http/httputil" "net/url" "strconv" "strings" "sync" "sync/atomic" "time" "github.com/avct/uasurfer" "golang.org/x/sync/singleflight" "github.com/cespare/xxhash" "github.com/didip/tollboot...
/* 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 ...
package main import ( "bytes" "context" "encoding/json" "fmt" "io" "log" "math/rand" "mime" "mime/multipart" "net/http" "os" "os/exec" "path/filepath" "strings" "sync" "time" "github.com/Shopify/sarama" "github.com/pkg/errors" "github.com/veritone/engine-toolkit/engine/internal/selfdriving" ) // E...
package main import ( "../gen-go/com/maxeler/correlation" "fmt" "git.apache.org/thrift.git/lib/go/thrift" "os" "math/rand" "math" "strconv" "time" ) const ( correlationMaxNumVariables int64 = 6000 correlationMaxNumTimeseries int64 = 6000 correlationNumTopScores int64 = 10 ...
package file import ( "fmt" "github.com/rjkroege/edwood/internal/sam" "github.com/rjkroege/edwood/internal/util" ) // File is an editable text buffer with undo. Many Text can share one // File (to implement Zerox). The File is responsible for updating the // Text instances. File is a model in MVC parlance while T...
// 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 strconv_test import ( "math" "math/rand" . "strconv" "testing" ) type ftoaTest struct { f float64 fmt byte prec int s string } func fd...
// Copyright 2017 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
package cli import ( "encoding/json" "fmt" "io/ioutil" "os" "strings" log "github.com/Sirupsen/logrus" "github.com/akutz/gofig" glog "github.com/akutz/golf/logrus" "github.com/akutz/gotil" "github.com/spf13/cobra" "github.com/spf13/pflag" "gopkg.in/yaml.v1" "github.com/emccode/libstorage/api/context" a...
// Copyright 2017 <NAME> <<EMAIL>> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to ...
// Copyright 2019 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without limitation the // rights to use, copy, modify, merge, publish, distribute...
//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 ...
// Copyright 2016 The kingshard 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...
// SPDX-License-Identifier: Apache-2.0 // Copyright © 2022 Wrangle Ltd package widgets import ( "container/list" "encoding/hex" "fmt" "strings" "github.com/gdamore/tcell/v2" "github.com/rivo/tview" "github.com/wrgl/wrgl/pkg/diff" "github.com/wrgl/wrgl/pkg/merge" ) const ( editSet int = iota editRemoveCol ...
package rvasp import ( "context" "crypto/rsa" "crypto/x509" "errors" "fmt" "io" "net" "time" "github.com/rs/zerolog/log" "github.com/shopspring/decimal" pb "github.com/trisacrypto/testnet/pkg/rvasp/pb/v1" "github.com/trisacrypto/trisa/pkg/ivms101" protocol "github.com/trisacrypto/trisa/pkg/trisa/api/v1be...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.6.1 // source: yandex/cloud/ai/vision/v1/classification.proto package vision import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ...
package service // import "github.com/finkf/pcwgo/service" import ( "compress/gzip" "context" "database/sql" "encoding/json" "fmt" "io" "net/http" "os" "regexp" "strconv" "strings" "time" "github.com/UNO-SOFT/ulog" "github.com/finkf/pcwgo/api" "github.com/finkf/pcwgo/db" _ "github.com/go-sql-driver/my...
package parser import ( "fmt" "github.com/fract-lang/fract/oop" "github.com/fract-lang/fract/pkg/fract" "github.com/fract-lang/fract/pkg/obj" ) // Metadata of variable declaration. type varInfo struct { constant bool mut bool } // Append variable to source. func (p *Parser) varadd(defs *oop.DefMap, inf v...
package main import ( "bytes" "encoding/binary" "encoding/json" "fmt" "math/big" "os" //"runtime/pprof" "sort" "sync/atomic" "time" "github.com/coinexchain/randsrc" "github.com/dterei/gotsc" sha256 "github.com/minio/sha256-simd" "github.com/smartbch/moeingads" "github.com/smartbch/moeingads/datatree" ...
// Copyright 2014 The Serviced 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...
package ddz import ( "errors" "math/bits" "math/rand" "sort" "strconv" "strings" ) // Ranks const ( Rank3 Rank = 0x01 Rank4 Rank = 0x02 Rank5 Rank = 0x03 Rank6 Rank = 0x04 Rank7 Rank = 0x05 Rank8 Rank = 0x06 Rank9 Rank = 0x07 RankT Rank = 0x08 RankJ Rank = 0x09 RankQ Rank = 0x0A R...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: github.com/aperturerobotics/controllerbus/controller/exec/exec.proto package controller_exec import ( fmt "fmt" controller "github.com/aperturerobotics/controllerbus/controller" proto1 "github.com/aperturerobotics/controllerbus/controller/configset/proto"...
package ipam import ( "errors" "math" "net" "reflect" "strconv" "strings" "encoding/binary" "math/big" "github.com/apparentlymart/go-cidr/cidr" danmtypes "github.com/nokia/danm/crd/apis/danm/v1" danmclientset "github.com/nokia/danm/crd/client/clientset/versioned" "github.com/nokia/danm/pkg/bita...
// 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 runtime import ( "context" "database/sql" "encoding/json" "errors" "fmt" "io" "time" "github.com/estuary/flow/go/bindings" "github.com/estuary/flow/go/capture" "github.com/estuary/flow/go/flow" pc "github.com/estuary/flow/go/protocols/capture" "github.com/estuary/flow/go/protocols/catalog" "githu...
package main import ( "encoding/json" "errors" "io/ioutil" "net/http" "os" "regexp" "strings" "sync" "syscall" "time" "fmt" "github.com/Nitro/sidecar-executor/container" "github.com/Nitro/sidecar-executor/vault" "github.com/Nitro/sidecar/service" docker "github.com/fsouza/go-dockerclient" "github.com...
package etcdcertsigner import ( "bytes" "context" "crypto/tls" "crypto/x509" "fmt" "strings" "time" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels" utilerrors "k8s.io/apimachinery/pkg/util/errors" "k8s.io/clie...
package cmd import ( "bytes" "context" "encoding/json" "fmt" "io/ioutil" "net/http" "os" "os/exec" "path" "runtime" "strings" "sync" "text/template" "time" "github.com/briandowns/spinner" "github.com/c-bata/go-prompt" "github.com/mitchellh/go-homedir" "github.com/pkg/errors" "github.com/spf13/cobra...
package main import ( "bytes" crand "crypto/rand" "crypto/rsa" "crypto/tls" "crypto/x509" "encoding/binary" "encoding/pem" "sync" // "errors" "flag" "fmt" "io" "log" "math/big" "math/rand" "net" // "net/http" // "encoding/base64" "os" "strconv" "strings" "time" quic "github.com/lucas-clement...
// Copyright 2019 CUE 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 ...
package mux import ( "bytes" "crypto/cipher" "crypto/ed25519" "errors" "fmt" "io" "net" "os" "sync" "syscall" "time" ) // Errors relating to stream or mux shutdown. var ( ErrClosedConn = errors.New("underlying connection was closed") ErrClosedStream = errors.New("stream was gracefully closed") ...
package lrc import ( "bytes" "github.com/minio/minio/cmd/crypto" "io" "runtime" "sync" "errors" "github.com/klauspost/cpuid/v2" ) // ErrTooFewShards is returned if too few shards where given to // Encode/Verify/Reconstruct/Update. It will also be returned from Reconstruct // if there were too few shards to r...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/extensions/filters/network/dubbo_proxy/v3alpha/dubbo_proxy.proto package envoy_extensions_filters_network_dubbo_proxy_v3alpha import ( fmt "fmt" _ "github.com/cncf/udpa/go/udpa/annotations" _ "github.com/envoyproxy/protoc-gen-validate/validate" pro...
/* Copyright 2019 The Tekton 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, software d...
// Copyright (c) 2018-present, MultiVAC Foundation. // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. // Copyright 2017 Yahoo Inc. All rights reserved. package vrf // Life of a verification: // // pk, sk, _ = GenerateKey(nil) // proof, _ ...
// Copyright 2020 The LUCI Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
// Code generated by protoc-gen-go. // source: mirbft.proto // DO NOT EDIT! /* Package mirbftpb is a generated protocol buffer package. It is generated from these files: mirbft.proto It has these top-level messages: Msg Preprepare Prepare Commit Checkpoint Forward */ package mirbftpb import proto "github.com...
package flac import ( "encoding/binary" "io" "github.com/coral/flac/frame" "github.com/coral/flac/internal/hashutil/crc16" "github.com/coral/flac/internal/hashutil/crc8" "github.com/coral/flac/internal/utf8" "github.com/icza/bitio" "github.com/mewkiz/pkg/errutil" ) // --- [ Frame ] --------------------------...
// Copyright (c) WSO2 Inc. (http://www.wso2.org) All Rights Reserved. // // WSO2 Inc. licenses this file to you 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/L...
/* 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 vps import ( "github.com/transip/gotransip/v6/ipaddress" "github.com/transip/gotransip/v6/product" "github.com/transip/gotransip/v6/rest" "net" ) // BackupStatus is one of the following strings // 'active', 'creating', 'reverting', 'deleting', 'pendingDeletion', 'syncing', 'moving' type BackupStatus strin...
package steps import ( "encoding/hex" "encoding/json" "errors" "fmt" "io" "net/http" "strings" "sync" "time" "github.com/ONSdigital/dp-cantabular-xlsx-exporter/event" "github.com/ONSdigital/dp-cantabular-xlsx-exporter/handler" "github.com/ONSdigital/dp-cantabular-xlsx-exporter/schema" "github.com/ONSdigi...
package parsecmd import ( "crypto/md5" "fmt" "io" "io/ioutil" "mime" "net/http" "net/url" "os" "path/filepath" "reflect" "sort" "strings" "sync" "time" "github.com/back4app/parse-cli/parsecli" "github.com/facebookgo/errgroup" "github.com/facebookgo/jsonpipe" "github.com/facebookgo/stackerr" "github...
package sgio var errmap map[string]string func GetErrString(a, b byte) string { return errmap[stringify(a, b)] } func init() { errmap = make(map[string]string) errmap[stringify(0x00, 0x00)] = "NO ADDITIONAL SENSE INFORMATION" errmap[stringify(0x00, 0x01)] = "FILEMARK DETECTED" errmap[stringify(0x00, 0x02)] = "E...
// Code generated with goa v3.6.0, DO NOT EDIT. // // locator protocol buffer definition // // Command: // $ goa gen goa.design/clue/example/weather/services/locator/design -o // services/locator // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.4 // source...
package metadata import ( "fmt" "math/rand" "os" "path" "regexp" "strconv" "strings" "time" "github.com/pkg/errors" ) // Plugin is the plugin metadata payload returned by Parse. type Plugin struct { // Files are the files that make up this Plugin. Files []File `json:"files"` // Path is the unique path to...
// Copyright 2015 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...
/* Copyright 2021-2022 Red Hat, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softw...
// 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" "golang.org/x/net/context" ) type dirtyBlockID struct { id BlockID ref...
package main import ( "bufio" "flag" "fmt" "log" "math" "os" "path/filepath" "strconv" "strings" "time" ) const ( globalRadiationTest int = iota temperatureTest relativeHumidityTest generalTest numberOfTests ) var testNames = [...]string{ "globalRadiation", "temperature", "relativeHumidity", "gene...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v2/services/ad_schedule_view_service.proto package services import ( context "context" fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" resources "google.golang.org/genproto/googleapis/ads/googleads/v2/resources" _ "...
// The MIT License (MIT) // // Copyright (c) 2013-2017 Oryx(ossrs) // // 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...
package main // substitution is // curl.exe -v -X POST 'http://127.0.0.1:64000/upload/zahar?&Filename="sendfile.rar"' -T .\testbackups\sendfile.rar --anyauth --user zahar import ( "crypto/x509" "encoding/hex" "fmt" "strings" "time" Error "github.com/zavla/upload/errstr" "github.com/zavla/upload/httpDigestAuthe...
// Copyright (c) 2018 The MATRIX Authors // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php package layereddpv2 import ( "github.com/MatrixAINetwork/go-matrix/baseinterface" "github.com/MatrixAINetwork/go-matrix/common" "github....
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.6.1 // source: tracelet_location.proto package pb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang....
package datatree import ( "bytes" "encoding/binary" "fmt" "github.com/coinexchain/onvakv/types" ) type Entry = types.Entry const MaxEntryBytes int = (1 << 24) - 1 var MagicBytes = [8]byte{255, 254, 253, 252, 252, 253, 254, 255} var dbg bool func DummyEntry(sn int64) *Entry { return &Entry{ Key: []b...
package hakoiri import ( "strings" "github.com/fatih/color" ) // Height is board panel height const Height = 5 // Width is board panel width const Width = 4 // PanelHeight is lines in a panel const PanelHeight = 3 // PanelWidth is runes in panel one line const PanelWidth = 7 // StringHeight is lines in a board...
package main import ( "context" "fmt" "strconv" "github.com/go-kit/log" "github.com/go-kit/log/level" hitron "github.com/hairyhenderson/hitron_coda" "github.com/prometheus/client_golang/prometheus" ) // cmCollector tracks interesting metrics from the hitron CM* APIs type cmCollector struct { ctx context....
package utils import ( "crypto/md5" "crypto/sha1" "crypto/sha256" "encoding/hex" "encoding/json" "fmt" "math/big" "github.com/xuperchain/xuperchain/core/pb" "github.com/xuperchain/xuperchain/core/utxo/txhash" ) type HexID []byte func (h HexID) MarshalJSON() ([]byte, error) { hex := hex.EncodeToString(h) ...
// slaughterCattle package ecoIndex /* Copyright 2021 <NAME> and <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, ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: ps_args_pulsar.proto package args 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.Errorf var _ = math.Inf // This is a co...
/* Copyright 2018 <<NAME> - <EMAIL>> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
package immutable import ( "bytes" "encoding/base64" "errors" "io" "unicode" ) type Bytes struct { p []byte } func NewBytes(p []byte, copy bool) Bytes { if copy { p = append([]byte(nil), p...) } return Bytes{p} } func BytesFromString(s string) Bytes { return NewBytes([]byte(s), false) } func (t Bytes) ...
package ipfsapp import ( "bytes" "context" "crypto/md5" "crypto/rand" "encoding/json" "flag" "fmt" bhost "github.com/libp2p/go-libp2p/p2p/host/basic" pstore "gx/ipfs/QmPgDWmTmuzvP7QE5zwo1TmjbJme9pmZHNujB2453jkCTr/go-libp2p-peerstore" gologging "gx/ipfs/QmQvJiADDe7JR4m968MwXobTCCzUqQkP87aRHe29MEBGHV/go-loggin...
//Package timequeue provides the TimeQueue type that is a queue of Messages. //Each Message contains a time.Time that determines the time at which the Message //should be released from the queue. //Message types also have a Data field of type interface{} that should be used //as the payload of the Message. //TimeQueue ...
// Copyright © 2021 The Things Industries B.V. // SPDX-License-Identifier: Apache-2.0 package gen import ( "fmt" "github.com/TheThingsIndustries/protoc-gen-go-json/annotations" "github.com/TheThingsIndustries/protoc-gen-go-json/internal/gogoproto" "google.golang.org/protobuf/compiler/protogen" "google.golang.or...
// +build ignore package main import ( "bytes" "flag" "fmt" "image" "image/color" "image/draw" "image/png" "io/ioutil" "log" "math" "os" "path/filepath" "sort" "sync" "github.com/golang/freetype/truetype" "github.com/nfnt/resize" "golang.org/x/image/font" "golang.org/x/image/math/fixed" ) var ( f...