text
stringlengths
5.51k
28.1k
package croc import ( "bufio" "bytes" "encoding/json" "fmt" "io/ioutil" "os" "strconv" "strings" "sync" "time" log "github.com/cihub/seelog" humanize "github.com/dustin/go-humanize" "github.com/gorilla/websocket" "github.com/pkg/errors" "github.com/schollz/croc/src/comm" "github.com/schollz/croc/src/c...
package gorgonia import ( "bytes" "fmt" "log" "strings" "github.com/chewxy/gorgonia/tensor/types" ) type tapeMachine struct { p *program storage []Value locMap map[*Node]register b batchedBLAS // state stuff, to allow continuation pc int // logging stuff watchNodes Nodes watchRegs []reg...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.23.0-devel // protoc v3.11.4 // source: fds/protobuf/stach/table/DataFormat.proto package table import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "goog...
package tesla import ( "fmt" "log" "strconv" "strings" "time" ) // ChargeState contains the current charge states that exist within the vehicle. type ChargeState struct { ChargingState string `json:"charging_state"` ChargeLimitSoc int `json:"charge_limit_soc"` ChargeLim...
package command // The implemented command structure is inspired by the QIR proposed by the // following paper. https://arxiv.org/pdf/1607.04197.pdf import ( "fmt" "strings" "github.com/xqueries/xdb/internal/engine/types" ) var _ Command = (*Explain)(nil) var _ Command = (*Scan)(nil) var _ Command = (*Select)(ni...
// Copyright IBM Corp. All Rights Reserved. // // SPDX-License-Identifier: Apache-2.0 // package bft_test import ( "sync" "sync/atomic" "testing" "time" "github.com/SmartBFT-Go/consensus/internal/bft" "github.com/SmartBFT-Go/consensus/internal/bft/mocks" "github.com/SmartBFT-Go/consensus/pkg/consensus" "gith...
/* (c) 2019, Blender Foundation - <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, pub...
package ndau // ----- ---- --- -- - // Copyright 2019 Oneiro NA, Inc. All Rights Reserved. // // Licensed under the Apache License 2.0 (the "License"). You may not use // this file except in compliance with the License. You can obtain a copy // in the file LICENSE in the source distribution or at // https://www.apac...
/* * 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 applicabl...
package utils import ( "bytes" "crypto/md5" "crypto/sha1" "crypto/sha256" "encoding/hex" "fmt" "io" "io/ioutil" "math" "math/rand" "net" "net/http" "os" "regexp" "strconv" "strings" "time" "github.com/sony/sonyflake" "gopkg.in/gomail.v2" //邮件发送包,当然也可以用官方net/smtp包 ) func CreateOrderNo() string { r...
// Copyright 2021 Tetrate // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
package goinsta import ( "encoding/json" "fmt" ) // InboxItem is any conversation message. type InboxItem struct { ID string `json:"item_id"` UserID int64 `json:"user_id"` Timestamp int64 `json:"timestamp"` ClientContext string `json:"client_context"` // Type there are a few types: //...
// Copyright (c) 2020 - for information on the respective copyright owner // see the NOTICE file and/or the repository at // https://github.com/hyperledger-labs/perun-node // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may...
package bot import ( "bufio" "fmt" "os" "path/filepath" "strings" "time" ) var envPassThrough = []string{ "HOME", "HOSTNAME", "LANG", "PATH", "USER", } // startPipeline is triggered by plugins, job triggers, scheduled tasks, and child jobs // Called from dispatch: checkPluginMatchersAndRun, // jobcommands...
package model import ( "fmt" ) // blocked const const ( // item type BUSSINESS = "credit-job" // deal bussinss time type DealTimeTypeNone = int8(0) DealTimeTypeDay = int8(1) DealTimeTypeYear = int8(2) // default time DefaultTime = "1979-12-31 16:00:00" TimeFormatSec = "2006-01-02 15:04:05" // Case Statu...
//----------------------------------------------------------------------------- /* RISC-V CSR Definition */ //----------------------------------------------------------------------------- package rvda import "fmt" //----------------------------------------------------------------------------- // Machine ISA regist...
// Copyright 2019 Yunion // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writi...
package conf import ( "fmt" "log" "net" "os" "runtime" "strings" "time" "github.com/fufuok/utils" "github.com/fufuok/xy-data-router/internal/json" ) // tJSONConf 接口配置 type tJSONConf struct { SYSConf tSYSConf `json:"sys_conf"` APIConf []TAPIConf `json:"api_conf"` ESWhiteList []string `json:"e...
package relay import ( "encoding/json" "fmt" "time" "github.com/chris-pikul/go-wormhole-server/config" "github.com/chris-pikul/go-wormhole-server/log" "github.com/chris-pikul/go-wormhole/errs" "github.com/chris-pikul/go-wormhole/msg" "github.com/gorilla/websocket" ) const ( readWait = 60 * time.Second wri...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.14.0 // source: mesh/options.proto package mesh import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" descriptorpb "google.golang.o...
package uuid import ( "crypto/md5" "crypto/sha1" "crypto/sha256" "crypto/sha512" "encoding/binary" "github.com/stretchr/testify/assert" "hash" "net/url" "runtime" "testing" ) var ( goLang = "https://google.com/golang.org?q=golang" idBytes = []byte{ 0xaa, 0xcf, 0xee, 0x12, 0xd4, 0x00, 0x27, 0x23, ...
package main import ( "context" "crypto/ecdsa" "encoding/hex" "fmt" "math/big" "os" "strconv" "strings" "github.com/ethereum/go-ethereum/accounts" "github.com/ethereum/go-ethereum/accounts/abi" "github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/ethereum/go-ethereum/accounts/usbwallet" "githu...
package info // Map type for holding status code info type codemap map[int]doc type doc struct { Category string Description string Message string } /* The contents of this map are derived from the HTTP response status codes article on the Mozilla Developer Network (MDN). HTTP response status codes[1] by M...
// Copyright 2016 TiKV Project 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 agr...
package tests import ( "encoding/hex" "fmt" "math/big" "os" "strings" "testing" "time" ethabi "github.com/ethereum/go-ethereum/accounts/abi" "github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" "github.com/stretchr/testif...
/* Author: Aosen Data: 2016-01-18 QQ: 316052486 Desc: 爬虫引擎 */ package robot import ( "io/ioutil" "log" "math/rand" "net/http" "os" "strings" "time" "github.com/PuerkitoBio/goquery" "github.com/aosen/mlog" "github.com/bitly/go-simplejson" ) type Spider struct { taskname string pageProcesser PageProcesse...
package main import "fmt" //Memory Addresses const ( // TODO(mjpatter88): revisit this once roms are supported. // Thid should be 0x8000, but that breaks since that address // will be part of the ROM address space. DEFAULT_PROG_MEM_ADDRESS = 0x0200 PROG_REFERENCE_MEM_ADDRESS = 0xfffc ) type StatusRegister str...
/* Package hashtreap implements a hash treap. A hash treap is a treap that is authenticated by having the nodes of the tree form a hash (Merkle) tree. This implementation is based on a heavily modified immutable treap implementation by https://github.com/steveyen, available at https://github.com/steveyen/gtreap under ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v0/errors/customer_manager_link_error.proto package errors // import "google.golang.org/genproto/googleapis/ads/googleads/v0/errors" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference import...
package quorum import ( "context" "errors" "fmt" "sync" "time" "github.com/hashicorp/go-multierror" "github.com/tendermint/tendermint/crypto" "github.com/tendermint/tendermint/dash/quorum/selectpeers" "github.com/tendermint/tendermint/internal/eventbus" "github.com/tendermint/tendermint/internal/p2p" tmpu...
/* Gapstone is a Go binding for the Capstone disassembly library. For examples, try reading the *_test.go files. Library Author: <NAME> Binding Author: <NAME> License: BSD style - see LICENSE file for details (c) 2013 COSEINC. All Rights Reserved. */ package gapstone import ( "bytes" "fmt" "io/ioutil" "te...
package main // structs below imported from JIRA Go package https://github.com/andygrunwald/go-jira import( "time" ) // User represents a JIRA user. type User struct { Self string `json:"self,omitempty" structs:"self,omitempty"` Name string `json:"name,omitempty" struc...
/* * Copyright 2021 Huawei Technologies Co., Ltd. * * 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 config import ( "errors" "fmt" "os" "os/exec" "regexp" "sort" "strconv" "strings" "github.com/git-town/git-town/src/run" "github.com/git-town/git-town/src/stringslice" ) // Config manages the Git Town configuration // stored in Git metadata in the given local repo and the global Git configuration. ...
// // This source file is part of the carousell/aggproto open source project // // Copyright © 2021 Carousell and the project authors // Licensed under Apache License v2.0 // // See https://github.com/carousell/aggproto/blob/master/LICENSE for license information // See https://github.com/carousell/aggproto/graphs...
/* * Copyright 2018 The Polycube 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 agree...
// +build linux package executor import ( "context" "fmt" "os" "os/exec" "path" "path/filepath" "strings" "syscall" "time" "github.com/armon/circbuf" "github.com/hashicorp/consul-template/signals" hclog "github.com/hashicorp/go-hclog" multierror "github.com/hashicorp/go-multierror" dstructs "github.com...
package SX127X const ( REG_FIFO = 0x00 REG_OP_MODE = 0x01 REG_BITRATE_MSB = 0x02 REG_BITRATE_LSB = 0x03 REG_FDEV_MSB = 0x04 REG_FDEV_LSB = 0x05 REG_FRF_MSB = 0x06 REG_FRF_MID = 0x07 REG_FRF...
package main import ( "encoding/json" "flag" "fmt" "io/ioutil" "log" "os" "strconv" "strings" "github.com/PuerkitoBio/goquery" "github.com/gocolly/colly" ) // FOR NOW THESE GLOBAL VARS FOR CLASSES/SPECIES/PIECES START type Pieces map[string]*ChessPiece type Classes map[string]*ChessClass type Species ma...
/* Copyright 2016 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
package templates import ( "bytes" "fmt" "go/types" "io/ioutil" "os" "path/filepath" "reflect" "runtime" "sort" "strconv" "strings" "text/template" "unicode" "github.com/99designs/gqlgen/internal/code" "github.com/99designs/gqlgen/internal/imports" ) // CurrentImports keeps track of all the import de...
/* Copyright 2018 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. // Package memcache provides a client for App Engine's distributed in-memory // key-value store for small chunks of arbitrary data. // // The fundamental operati...
package types_test import ( "math/rand" "sort" "testing" octypes "github.com/line/ostracon/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/line/lbm-sdk/codec/legacy" cryptocodec "github.com/line/lbm-sdk/crypto/codec" "github.com/line/lbm-sdk/crypto/keys/ed25519"...
/* * Copyright 2019-2020 VMware, Inc. * All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law...
package main import ( "database/sql" "encoding/json" "flag" "fmt" _ "github.com/go-sql-driver/mysql" "github.com/techoner/gophp/serialize" "io/ioutil" "net/http" "net/url" "os" "strconv" "strings" "time" ) type ChannelId struct { ChannelId string `json:"channel_id"` } type ChannelData struct { Channel...
/* Copyright 2017 Author: <NAME> All rights reserved. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file or at http://www.apache.org/licenses/LICENSE-2.0 */ package prayertime import ( "github.com/buildscientist/prayertime/julian" "github.com/buildscientist/prayertim...
// // SPDX-License-Identifier: BSD-3-Clause // package swordfish import ( "encoding/json" "github.com/stmcginnis/gofish/common" ) // ConsistencyState is used to describe the consistency type used by the // source and its associated target group. type ConsistencyState string const ( // ConsistentConsistencyState...
// Copyright 2017 Authors of Cilium // // 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 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 protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.12.3 // source: common.proto package proto import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/prot...
// Copyright 2019 The Chromium 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 request provides a library to create swarming requests based on // skylab test or task parameters. package request import ( "fmt" "strings" ...
// Copyright 2020 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 "license" fil...
// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
// Licensed to Elasticsearch B.V. under one or more contributor // license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright // ownership. Elasticsearch B.V. licenses this file to you under // the Apache License, Version 2.0 (the "License"); you may // not use ...
// Licensed to Elasticsearch B.V. under one or more contributor // license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright // ownership. Elasticsearch B.V. licenses this file to you under // the Apache License, Version 2.0 (the "License"); you may // not use ...
package bollmaker import ( "context" "fmt" "math" "sync" "time" "github.com/c9s/bbgo/pkg/indicator" "github.com/pkg/errors" "github.com/sirupsen/logrus" "github.com/c9s/bbgo/pkg/bbgo" "github.com/c9s/bbgo/pkg/exchange/max" "github.com/c9s/bbgo/pkg/fixedpoint" "github.com/c9s/bbgo/pkg/service" "github.c...
// COPYRIGHT (C) 2017 barreiro. All Rights Reserved. // GoLang solvers for Project Euler problems package euler import ( "strings" "testing" ) func assert(t *testing.T, actual int, expected int) { if expected != actual { t.Fatal(t.Name(), "Expected:", expected, "Actual:", actual) } t.Log(t.Name(), "Expected:",...
/* Copyright 2016 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
package compiler_test import ( "errors" "fmt" "math/big" "strings" "testing" "github.com/nspcc-dev/neo-go/pkg/compiler" "github.com/nspcc-dev/neo-go/pkg/core" "github.com/nspcc-dev/neo-go/pkg/core/interop" "github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames" istorage "github.com/nspcc-dev/neo-go/pkg/...
package main import ( "fmt" "os" "sort" "strings" "text/template" "time" "github.com/scipipe/scipipe" ) // AuditReport is a container for data to be parsed into an audit report, in // HTML, TeX or other format type auditReport struct { FileName string SciPipeVer string RunTime time.Duration AuditI...
// Copyright (c) 2017 <NAME>, Inc. // Use of this source code is governed by the Apache License 2.0 // that can be found in the COPYING file. package gnmi import ( "bufio" "bytes" "context" "encoding/base64" "encoding/json" "errors" "fmt" "io" "io/ioutil" "math" "os" "path" "strconv" "strings" "time" ...
// Package nlb_hello_world installs a simple "Hello World" application with NLB. // Replace https://github.com/aws/aws-k8s-tester/tree/v1.5.9/eks/nlb-hello-world. package nlb_hello_world import ( "context" "errors" "fmt" "io" "io/ioutil" "path" "reflect" "strings" "time" "github.com/aws/aws-k8s-tester/clien...
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package gif import ( "bufio" "bytes" "compress/lzw" "errors" "image" "image/color" "image/color/palette" "image/draw" "io" ) // Graphic control exten...
// Copyright © 2021 Cisco Systems, Inc. and 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 //...
package cmd import ( "bufio" "context" "encoding/json" "errors" "fmt" "io/ioutil" "net/http" "os" "os/user" "path" "strings" "syscall" "time" "github.com/spf13/cobra" "golang.org/x/crypto/ssh/terminal" "gopkg.in/yaml.v2" v1 "github.com/tinyzimmer/k3p/pkg/build/package/v1" "github.com/tinyzimmer/k3p...
package upgrade import ( "context" "fmt" "net/http" "time" "github.com/pkg/errors" "github.com/stackrox/rox/generated/internalapi/central" "github.com/stackrox/rox/pkg/concurrency" "github.com/stackrox/rox/pkg/errorhelpers" "github.com/stackrox/rox/pkg/httputil" pkgKubernetes "github.com/stackrox/rox/pkg/ku...
/* * 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...
// Copyright 2019-present 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 agr...
// Copyright 2016 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 main import ( "fmt" "image" "os" "path/filepath" "sync" "github.com/rjkroege/edwood/draw" "github.com/rjkroege/edwood/file" "github.com/rjkroege/edwood/frame" "github.com/rjkroege/edwood/util" ) type Window struct { display draw.Display lk sync.Mutex ref Ref tag Text body Text ...
// Copyright 2018. All rights reserved. Use of this source code is governed by // an MIT-style license that can be found in the LICENSE file. // Package cache implements the CLOCK-Pro caching algorithm. /* CLOCK-Pro is a patent-free alternative to the Adaptive Replacement Cache, https://en.wikipedia.org/wiki/Adaptive...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: yandex/cloud/iot/devices/v1/registry_data_service.proto package devices import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" _ "github.com/yandex-cloud/go-genproto/yandex/cloud" _ "google.golang.org/genproto/googleapis/api/annot...
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation and Dapr Contributors. // Licensed under the MIT License. // ------------------------------------------------------------ package mdns import ( "context" "errors" "fmt" "math" "os" "os/signal" "strconv" "syn...
package rel_test import ( "reflect" "strings" "testing" u "github.com/araddon/gou" "github.com/stretchr/testify/assert" "github.com/araddon/qlbridge/expr" "github.com/araddon/qlbridge/rel" ) var ( sqlStrings = []string{` SELECT email IF NOT (email IN ("hello")) INTO table FROM mystream `, `/* DESCRIPTI...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: workloadattestor.proto package workloadattestor import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import common "github.com/spiffe/spire/proto/common" import plugin "github.com/spiffe/spire/proto/common/plugin" import ( co...
// Code generated by protoc-gen-go. // source: google.golang.org/genproto/googleapis/genomics/v1/readgroup.proto // DO NOT EDIT! package google_genomics_v1 // import "google.golang.org/genproto/googleapis/genomics/v1" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _ "google...
// Code generated by 'ccgo stdlib\gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o stdlib\stdlib_windows_arm64.go -pkgname stdlib', DO NOT EDIT. package stdlib import ( "math...
package manga import ( "regexp" "strconv" "strings" "github.com/PuerkitoBio/goquery" "github.com/rl404/go-malscraper/pkg/malscraper/config" "github.com/rl404/go-malscraper/pkg/malscraper/constant" "github.com/rl404/go-malscraper/pkg/malscraper/model/common" model "github.com/rl404/go-malscraper/pkg/malscraper...
// Copyright 2014 beego Author. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
package lang import ( "fmt" "sort" "strings" "github.com/newrelic/tutone/internal/config" "github.com/newrelic/tutone/internal/schema" "github.com/newrelic/tutone/internal/util" log "github.com/sirupsen/logrus" ) // GolangGenerator is enough information to generate Go code for a single package. type GolangGe...
package namespaces import ( "bytes" "encoding/json" "errors" "fmt" tm "github.com/buger/goterm" tw "github.com/olekukonko/tablewriter" "io/ioutil" "os" "path/filepath" "regexp" "runtime" "sort" "strconv" "strings" "time" "syscall" "unsafe" ) type NSTYPE string type Namespace struct { Type NSTYPE I...
package labelmap import ( "bytes" "compress/gzip" "encoding/binary" "encoding/json" "fmt" "strings" "testing" "github.com/janelia-flyem/dvid/datastore" "github.com/janelia-flyem/dvid/datatype/common/labels" "github.com/janelia-flyem/dvid/datatype/common/proto" "github.com/janelia-flyem/dvid/dvid" "github....
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: bah00100102.proto package bah001 import ( _ "github.com/envoyproxy/protoc-gen-validate/validate" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/p...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.21.0 // protoc v3.11.4 // source: publisher.proto package publisher import ( context "context" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.gola...
// Code generated by protoc-gen-go. // source: github.com/micro/go-os/trace/proto/trace.proto // DO NOT EDIT! /* Package go_micro_os_trace is a generated protocol buffer package. It is generated from these files: github.com/micro/go-os/trace/proto/trace.proto It has these top-level messages: Annotation Span Serv...
package jce type IJceStruct interface { //ToBytes() []byte ReadFrom(*JceReader) } type ( RequestPacket struct { IVersion int16 `jceId:"1"` CPacketType byte `jceId:"2"` IMessageType int32 `jceId:"3"` IRequestId int32 `jceId:"4"` SServantName string ...
package raft // Read raft paper at https://raft.github.io/raft.pdf import ( "context" "fmt" "log" "math/rand" "time" ) type workMode int func (m workMode) String() string { return [3]string{"follower", "candidate", "leader"}[m] } const ( followerMode workMode = iota candidateMode leaderMode ) const ( el...
package dht import ( "encoding/hex" "net" "strings" "sync" "time" "github.com/lbryio/lbry.go/v2/dht/bits" "github.com/lbryio/lbry.go/v2/extras/errors" "github.com/lbryio/lbry.go/v2/extras/stop" "github.com/lbryio/lbry.go/v2/extras/util" "github.com/davecgh/go-spew/spew" "github.com/lyoshenka/bencode" ) /...
// Copyright 2019 The Kubernetes Authors. // Copyright 2021 The OCGI 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 // // Un...
package math import ( "errors" ) type Matrix4 struct { M11, M12, M13, M14 float32 M21, M22, M23, M24 float32 M31, M32, M33, M34 float32 M41, M42, M43, M44 float32 } func NewMatrix4() *Matrix4 { return &Matrix4{} } func NewIdentityMatrix4() *Matrix4 { return &Matrix4{ M11: 1.0, M22: 1.0, M33: 1.0, M44...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: lte/protos/keyval.proto package protos 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...
package daos // #include <stdlib.h> // #include <daos.h> // #include <daos/common.h> import "C" import ( "fmt" "unsafe" "github.com/pkg/errors" "github.com/intel-hpdd/logging/debug" ) type ( // RequestBuffers is a slice of byte slices RequestBuffers [][]byte // SGList wraps a C.daos_sg_list_t SGList struc...
/* * * k6 - a next-generation load testing tool * Copyright (C) 2016 Load Impact * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your o...
package util import ( "bufio" "bytes" "fmt" "go/format" "io" "log" "math" "os" "os/exec" "path/filepath" "runtime" "strings" "time" ) /* Utility functions that don't fit in any particular package and may be needed by any package. These are not considered part of the `gotables` interface surface and ma...
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Vet is a simple checker for static errors in Go source code. // See doc.go for more information. package main import ( "bytes" "flag" "fmt" "go/ast" "g...
package reader import ( "encoding/json" "net/http" "strconv" "time" "github.com/benpate/activitystream/vocabulary" "github.com/benpate/derp" ) // Object is a data structure that makes it easy(-er) to read and understand data from an ActivityStream JSON package. // In the process, it makes irreversible changes ...
// Copyright 2021 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 agreed ...
// MIT License // // Copyright (c) Microsoft Corporation. All rights reserved. // // 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 righ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: model/taskresult.proto package model // import "github.com/netflix/conductor/client/gogrpc/conductor/model" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import any "github.com/golang/protobuf/ptypes/any" import _struct ...