text
stringlengths
5.51k
28.1k
package main import ( "context" cryptotls "crypto/tls" "errors" "fmt" "net" "net/http" "os" "sync" "time" ghandlers "github.com/gorilla/handlers" "github.com/rs/cors" "gitlab.com/gitlab-org/labkit/log" "gitlab.com/gitlab-org/go-mimedb" "gitlab.com/gitlab-org/labkit/correlation" "gitlab.com/gitlab-org/...
/* Copyright IBM Corp. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package stateustoredb import ( "bytes" "encoding/json" "fmt" "hash/fnv" "math" "strconv" "strings" "time" "ustore" "github.com/hyperledger/fabric/common/flogging" "github.com/hyperledger/fabric/core/ledger/internal/version"...
/* Copyright 2014 The Kubernetes 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 law or ag...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: examples/proto/examplepb/wrappers.proto package examplepb import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import wrappers "github.com/golang/protobuf/ptypes/wrappers" import _ "google.golang.org/genproto/googleapis/api/ann...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: userProfile.proto package userProfile import ( context "context" common "food/common" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/stat...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/config/filter/network/thrift_proxy/v2alpha1/thrift_proxy.proto package v2 import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" _ "github.com/lyft/protoc-gen-validate/validate" math "math" ) // Referen...
package main import ( "bufio" "fmt" "math" "math/rand" "os" "sort" "strconv" "strings" ) type item string type command string var ( H int = 15 W int = 30 ) const ( RADAR item = "RADAR" TRAP item = "TRAP" REQUEST command = "REQUEST" MOVE command = "MOVE" DIG command = "DIG" WAIT command =...
package main import ( "bytes" "encoding/xml" "flag" "fmt" "io" "log" "net/http" "os" "os/exec" "strings" "text/template" "time" ) var source = flag.String("source", "", "Where to get the XML from") var output = flag.String("output", "", "Where to put the output go file") var pkgName = flag.String("pkg", "...
// // Long-running daemon to update the busylight status // based on availability as shown on Google calendars. // // USR1 - in online meeting, muted // USR2 - in online meeting, unmuted // HUP - out of online meeting // INFO - force refresh from calendar now // VTALRM - wake from idle state (wa...
// Copyright (c) 2015-2021 MinIO, Inc. // // This file is part of MinIO Object Storage stack // // 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 // (...
package checks import ( "context" "fmt" "io/ioutil" "net/http" "sort" "strings" "time" "k8s.io/api/extensions/v1beta1" "k8s.io/apimachinery/pkg/util/intstr" canaryv1 "github.com/flanksource/canary-checker/api/v1" "github.com/flanksource/canary-checker/pkg" "github.com/flanksource/canary-checker/pkg/metr...
package tv import ( "strings" "unicode" xs "github.com/huandu/xstrings" term "github.com/nsf/termbox-go" "github.com/prospero78/goTV/tv/types" ) type attr struct { text term.Attribute back term.Attribute } type rect struct { x types.ACoordX y types.ACoordY w, h int } /* Canvas is a 'graphical' eng...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: v8platform/serialize/v1/managers.proto package serializev1 import ( _ "github.com/v8platform/protoc-gen-go-ras/plugin/ras/encoding" protoreflect "google.golang.org/protobuf/reflect/protorefle...
package acrostic import ( "errors" "hash/crc32" "sort" "github.com/noyuno/lgo/algo" log "github.com/sirupsen/logrus" ) // Pattern : 重みつけを持たない有向グラフを同格同士シャッフルするための構造体 // グラフ中に少なくとも1つの頂点が終点でなければならない type Pattern struct { // Matrix : 隣接行列 Matrix [][]bool // Length : 大きさ Length int // InitialOrder : 初期の並び順 In...
// Copyright 2020 <NAME>. All rights reserved. package analytics import ( "math" "sort" "strings" "time" ) // ScoreFormula holds metric info type ScoreFormula struct { formula string label string low int high int } // FormulaMap holds low and high watermarks var FormulaMap = map[string]ScoreFormula...
package hls import ( "fmt" "log" "pkg.autotunego.com/pkg/streamsrv/rtmp/protocol" "encoding/binary" "pkg.autotunego.com/pkg/streamsrv/utiltools" ) // the h264/avc and aac codec, for media stream. // // to demux the FLV/RTMP video/audio packet to sample, // add each NALUs of h.264 as a sample unit to sample, // ...
package blockdao import ( "context" "fmt" "hash/fnv" "io/ioutil" "math/big" "math/rand" "os" "path/filepath" "testing" "time" "github.com/pkg/errors" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "github.com/iotexproject/go-pkgs/hash" "github.com/iotexproject/iotex-core/ac...
// TODO: Figure out about how to structure things for multiple // OS / BLE interface configurations. Build tags? Subpackages? package gatt import ( "bufio" "encoding/binary" "encoding/hex" "errors" "fmt" "net" "strconv" "strings" "sync" "syscall" "log" ) // l2capHandler is the set of callback methods requ...
/* Distributed under the MIT license. See the LICENSE file. * Copyright (c) 2014--2016 <NAME> */ package bfd // #include <stdio.h> // #include <stdlib.h> // #include <elf.h> // #include "syms.h" // #cgo CFLAGS: -std=gnu99 import "C" import "debug/elf" import "errors" import "fmt" import "os" import "reflect" import ...
package log import ( "bufio" "fmt" stdlog "log" "os" "path" "reflect" "sort" "sync" "testing" "time" ) func (lg *Logger) normalLevelPrintf(format string, args ...interface{}) { lg.Tracef(format, args...) lg.Debugf(format, args...) lg.Infof(format, args...) lg.Warnf(format, args...) lg.Errorf(format, ar...
package expr import ( "bytes" "errors" "fmt" "reflect" "testing" ) func TestBasicTokenisation(t *testing.T) { tt := []struct { source string expected []tokenType }{ {"", nil}, {" ", nil}, {"*/", []tokenType{tokenMul, tokenQuo}}, {"()", []tokenType{tokenLparen, tokenRparen}}, {">", []tokenType{t...
package proto import ( "bytes" "fmt" "math/big" "regexp" "sort" "strconv" "strings" "unicode" "github.com/pkg/errors" "github.com/wavesplatform/gowaves/pkg/crypto" ) type ethereumTypedDataType struct { Name string `json:"name"` Type string `json:"type"` } func (t *ethereumTypedDataType) isArray() bool {...
// Copyright (c) 2018 Cisco and/or its affiliates. // // 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...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: lorawan-stack/api/enums.proto package ttnpb import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" golang_proto "github.com/golang/protobuf/proto" math "math" strconv "strconv" ) // Reference imports to supp...
/* 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...
// Analyze the data dependencies between "basic blocks" (for loops + functions) // Any dependencies within blocks don't matter, only those that cross the // boundaries of loops and function calls. Each basic block records: // - New identifiers defined // - Identifiers read // - Identifiers written // External reads and...
package tree /* License Governed by a 3-Clause BSD license. License file may be found in the root folder of this module. Copyright © 2017–2022 <NAME> <<EMAIL>> */ import ( "fmt" "runtime" "sort" "sync" ) // Tree operations will be carried out by concurrent worker goroutines. // As tree operations may be chain...
package midlayer import ( "context" "encoding/json" "fmt" "io" "io/ioutil" "net" "net/http" "net/http/httputil" "net/url" "os" "os/exec" "path" "sort" "strings" "sync" "github.com/digitalrebar/logger" "github.com/digitalrebar/provision/backend" "github.com/digitalrebar/provision/models" "github.com...
// 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 genericio provides a generic implementation of the // io package that works on streams of any type. package genericio import ( "errors" "io" ) //...
package lib import ( "context" "fmt" "html/template" "log" "net/http" "os" "path" "reflect" "sort" "strings" "time" ) // CorsCfg is the CORS config. type CorsCfg struct { Enabled bool Credentials bool AllowedHeaders []string AllowedHosts []string AllowedMethods []string ExposedHeaders []s...
// Simplest possible Apple II that will possibly boot, in exp/shiny. ~ (tilde) to quit. package main import ( "flag" "fmt" "image" "image/color" "log" "os" "runtime/pprof" "golang.org/x/exp/shiny/driver" "golang.org/x/exp/shiny/screen" "golang.org/x/mobile/event/key" "golang.org/x/mobile/event/lifecycle" ...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: clone.proto package desktop import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" micro_app "github.com/easyopsapis/easyops-api-go/protorepo-models/easyops/model/mic...
// Copyright 2021. Clumio, Inc. // clumio_callback_resource definition and CRUD implementation. package clumio import ( "bytes" "context" "encoding/json" "errors" "fmt" "log" "strconv" "strings" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/service/s3" s3types "github.com/aws/a...
// Copyright © 2019 NAME HERE <EMAIL ADDRESS> // // 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 ...
//go:build darwin || linux || windows // +build android, gldebug package vrapi /* #cgo CPPFLAGS: -I./Include -I/usr/local/include #cgo LDFLAGS: -v -march=armv8-a -shared -L./lib/arm64-v8a/ -lvrapi -landroid #include <VrApi.h> #include <VrApi_Helpers.h> #include <VrApi_Input.h> ovrResult submit(ovrMobile* ovr, ovrSub...
package bls import ( "bytes" "crypto/cipher" "testing" "github.com/drand/kyber" "github.com/drand/kyber/sign/bls" "github.com/drand/kyber/sign/tbls" "github.com/drand/kyber/sign/test" "github.com/drand/kyber/util/random" "github.com/stretchr/testify/require" ) // Code extracted from kyber/utils/test // TODO...
package wlog import ( "bufio" "bytes" "fmt" "io" "os" "runtime" "strings" "sync" "sync/atomic" "time" ) var logging loggingT //日志等级 type severity int32 const ( DEBUG severity = iota INFO WARNING ERROR FATAL NUMSEVERITY = 5 ) var severityString = []string{ DEBUG: "[DEBUG ]", INFO: "[INFO ]...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/services/hotel_performance_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/v1/resources...
/* Copyright 2015 The Kubernetes 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 law or ag...
/* Copyright Istio 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 ...
package buffer import ( log "common/log/newlog" "common/util/mem" "encoding/binary" "io" "strings" "sync" "sync/atomic" "time" "github.com/pion/rtcp" "github.com/pion/rtp" "github.com/pion/sdp/v3" "github.com/pion/webrtc/v3" ) const ( maxSN = 1 << 16 reportDelta = 1e9 ) // Logger is an implementation...
/* Copyright 2014 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 iotago import ( "encoding/json" "errors" "fmt" "github.com/iotaledger/hive.go/serializer" "golang.org/x/crypto/blake2b" ) const ( // TransactionPayloadTypeID defines the transaction payload's type ID. TransactionPayloadTypeID uint32 = 0 // TransactionIDLength defines the length of a Transaction ID. ...
// Copyright 2021 Dolthub, 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 provisioner import ( "bytes" "context" "crypto/sha256" "crypto/x509" "encoding/hex" "fmt" "io/ioutil" "net/http" "net/url" "strings" "time" "github.com/pkg/errors" "github.com/smallstep/certificates/errs" "go.step.sm/crypto/jose" "go.step.sm/crypto/sshutil" "go.step.sm/crypto/x509util" ) // g...
// Copyright 2018 The Nakama 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 ...
// Cosmetic warnings (e.g. for improved readability of Starlark files) package warn import ( "fmt" "regexp" "sort" "strings" "github.com/bazelbuild/buildtools/build" "github.com/bazelbuild/buildtools/edit" ) func sameOriginLoadWarning(f *build.File) []*LinterFinding { var findings []*LinterFinding type loa...
// Copyright © 2019 <NAME> <<EMAIL>> // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distri...
// Copyright 2020 MatrixOrigin. // // 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 2020 DevSpace Technologies 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 writin...
// Package program contains high-level orchestration and state of the input and // output program during transpilation. package program import ( "bytes" "fmt" "go/format" "go/token" "os" goast "go/ast" "strings" "github.com/Konstantin8105/c4go/ast" "github.com/Konstantin8105/c4go/preprocessor" "github.com...
package tracker import ( "context" "fmt" "strings" "sync" "time" "github.com/filecoin-project/go-fil-markets/storagemarket" "github.com/ipfs/go-cid" logger "github.com/ipfs/go-log/v2" "github.com/textileio/go-threads/core/thread" powc "github.com/textileio/powergate/v2/api/client" userPb "github.com/textil...
// Copyright 2021 PingCAP, Inc. Licensed under Apache-2.0. package metautil import ( "bytes" "context" "crypto/sha256" "encoding/json" "fmt" "sync" "time" "github.com/docker/go-units" "github.com/gogo/protobuf/proto" "github.com/opentracing/opentracing-go" "github.com/pingcap/errors" backuppb "github.com...
/* 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, ...
package api import ( "context" "fmt" "sort" "strconv" "time" ) const ( NodeStatusInit = "initializing" NodeStatusReady = "ready" NodeStatusDown = "down" // NodeSchedulingEligible and Ineligible marks the node as eligible or not, // respectively, for receiving allocations. This is orthoginal to the node ...
// Code generated by protoc-gen-go. // source: metrics.proto // DO NOT EDIT! /* Package grpc_testing is a generated protocol buffer package. It is generated from these files: metrics.proto It has these top-level messages: GaugeResponse GaugeRequest EmptyMessage */ package grpc_testing import proto "github.com/g...
// // Copyright Coinbase, Inc. All Rights Reserved. // // SPDX-License-Identifier: Apache-2.0 // // Package simplest implements the "Verified Simplest OT", as defined in "protocol 7" of [DKLs18](https://eprint.iacr.org/2018/499.pdf). // The original "Simplest OT" protocol is presented in [CC15](https://eprint.iacr.org...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.13.0 // source: common/common.proto package common import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runt...
package api import ( "fmt" "strconv" "time" "github.com/artpar/rclone/fs/fserrors" "github.com/artpar/rclone/lib/version" ) // Error describes a B2 error response type Error struct { Status int `json:"status"` // The numeric HTTP status code. Always matches the status in the HTTP response. Code string...
package config import ( "compress/gzip" "fmt" "io/ioutil" "math/rand" "net/http" "os" "path/filepath" "regexp" "sort" "sync/atomic" "time" "code.google.com/p/go-uuid/uuid" "github.com/getlantern/appdir" "github.com/getlantern/fronted" "github.com/getlantern/golog" "github.com/getlantern/launcher" "g...
// Copyright 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" file acco...
// Package manifest represents a valid BOSH manifest and provides funcs to load // it, marshal it and access its fields. package manifest import ( "bytes" "crypto" "crypto/sha1" "encoding/hex" "encoding/json" "fmt" "reflect" "regexp" "strings" "github.com/pkg/errors" "go.uber.org/zap" goyaml "gopkg.in/yam...
// Main structures for DNS headers, flags, etc // Coming from https://datatracker.ietf.org/doc/html/rfc1035 package main import ( //"bytes" "encoding/binary" "strings" //"fmt" "io" ) // Utility function to convert a bool to an uint16: no standard conversion offered by Go func bool2int16(b bool) uint16 { if b {...
package canal import ( "bufio" "dump" "encoding/json" "fmt" "io" "io/ioutil" "os" "path" "strconv" "strings" "sync" "time" "transfer" "github.com/juju/errors" "github.com/ngaut/log" "github.com/siddontang/go-mysql/client" "github.com/siddontang/go-mysql/mysql" "github.com/siddon...
// Copyright (c) 2016-2019 <NAME>. All rights reserved. // Copyright (c) 2016-2019 <NAME>. All rights reserved. // Copyright (c) 2020-2021 Oasis Labs Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions a...
/* 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, ...
// Copyright 2017 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 test2json implements conversion of test binary output to JSON. // It is used by cmd/test2json and cmd/go. // // See the cmd/test2json documentation f...
package provisioner import ( "context" "crypto/sha256" "crypto/x509" "encoding/base64" "encoding/hex" "encoding/json" "encoding/pem" "fmt" "io/ioutil" "net" "net/http" "strings" "time" "github.com/pkg/errors" "github.com/smallstep/cli/jose" ) // awsIssuer is the string used as issuer in the generated ...
// Copyright 2014, The Serviced 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. package api import ( "github.com/zenoss/glog" coordclient "github.com/control-center/serviced/coordinator/client" coordzk "github.com/control-cent...
package restapi import ( "bytes" "encoding/json" "fmt" "io/ioutil" "net/http" "strings" "time" middleware "github.com/go-openapi/runtime/middleware" models "github.com/projectodd/kwsk/models" "github.com/projectodd/kwsk/restapi/operations" "github.com/projectodd/kwsk/restapi/operations/actions" corev1 "...
package oned import ( "github.com/makiuchi-d/gozxing" ) // Implements decoding of the ITF format, or Interleaved Two of Five. // // This Reader will scan ITF barcodes of certain lengths only. // At the moment it reads length 6, 8, 10, 12, 14, 16, 18, 20, 24, // and 44 as these have appeared "in the wild". // Not all...
// Code generated by protoc-gen-gogo. // source: proto3_proto/proto3.proto // DO NOT EDIT! /* Package proto3_proto is a generated protocol buffer package. It is generated from these files: proto3_proto/proto3.proto It has these top-level messages: Message Nested MessageWithMap */ package proto3_proto import pro...
package internal import ( "bytes" "syscall" "time" "github.com/mongodb/grip/send" "github.com/mongodb/jasper" "github.com/tychoish/bond" ) // Export takes a protobuf RPC CreateOptions struct and returns the analogous // Jasper CreateOptions struct. It is not safe to concurrently access the // exported RPC Crea...
package iris import ( "io" "log" "net/http" "strings" "github.com/kataras/go-errors" ) type ( // Policy is an interface which should be implemented by all // modules that can adapt a policy to the Framework. // With a Policy you can change the behavior of almost each of the existing Iris' features. Policy i...
// 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. // Fork, exec, wait, etc. package syscall import ( "internal/itoa" "runtime" "sync" "unsafe" ) // ForkLock is not used on plan9. var ForkLock sync.RWMute...
package decimal import ( "math" "math/bits" ) type flavor int type roundingMode int type discardedDigit int const ( eq0 discardedDigit = 1 << iota lt5 eq5 gt5 ) const ( flNormal flavor = iota flInf flQNaN flSNaN ) const ( roundHalfUp roundingMode = iota roundHalfEven roundDown ) // Decimal64 represen...
// Copyright (c) 2019 The iexcloud developers. All rights reserved. // Project site: https://github.com/goinvest/iexcloud // Use of this source code is governed by a MIT-style license that // can be found in the LICENSE file for the project. package iex import ( "encoding/json" "fmt" "io/ioutil" "net/http" "net/...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: proto/logger.proto package domain import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.g...
// Copyright 2021 <NAME>. /* Package parco is a parser combinator library for Go. It is suitable for parsing short texts, like embedded languages. Basics First, construct the parser by using the combinator functions to describe the grammar. For example, the simple grammar the (big* | small) dog allows phrases...
// Copyright Nitric Pty Ltd. // // SPDX-License-Identifier: Apache-2.0 // // 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 r...
/* Copyright 2021 The KCP 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, softwar...
/* * MIT License * * Copyright (c) 2018 <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, m...
// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 package crunchrun import ( "bufio" "bytes" "fmt" "io" "log" "regexp" "strings" "sync" "time" "git.arvados.org/arvados.git/sdk/go/arvadosclient" ) // Timestamper is the signature for a function that takes a t...
package feed import ( "context" "encoding/json" "fmt" "github.com/golang/protobuf/proto" "github.com/golang/protobuf/ptypes/timestamp" "github.com/google/uuid" gtfs "github.com/jamespfennell/path-train-gtfs-realtime/feed/gtfsrt" sourceapi "github.com/jamespfennell/path-train-gtfs-realtime/feed/sourceapi" "goo...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: addressbook.proto package protofile import ( fmt "fmt" proto "github.com/golang/protobuf/proto" timestamp "github.com/golang/protobuf/ptypes/timestamp" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.M...
package avi import ( "errors" "fmt" "log" "math" "strings" "sync" "time" "github.com/go-gl/mathgl/mgl64" "github.com/golang/glog" ) const minSectorSize = 100 const SecondsPerTick = 1e-3 const small = 1e-6 const impulseToDamage = 0.25 type Simulation struct { ships []*shipT inrts []Object proj...
package gateio import ( "encoding/json" "time" "github.com/thrasher-/gocryptotrader/currency/symbol" ) // SpotNewOrderRequestParamsType order type (buy or sell) type SpotNewOrderRequestParamsType string var ( // SpotNewOrderRequestParamsTypeBuy buy order SpotNewOrderRequestParamsTypeBuy = SpotNewOrderRequestPa...
package summarizer import ( "encoding/json" "fmt" "io/ioutil" "os" "path/filepath" "sort" "gopkg.in/yaml.v2" kb "github.com/aquasecurity/kube-bench/check" "github.com/sirupsen/logrus" "github.com/spf13/viper" ) const ( DefaultOutputFileName = "report.json" DefaultControlsDirectory = "/cfg" E...
package views import ( "context" "fmt" "sort" "strings" "sync" "github.com/awesome-gocui/gocui" "github.com/lawrencegripper/azbrowse/internal/pkg/errorhandling" "github.com/lawrencegripper/azbrowse/internal/pkg/eventing" "github.com/lawrencegripper/azbrowse/internal/pkg/expanders" "github.com/lawrencegrippe...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0-devel // protoc v3.13.0 // source: wso2/discovery/throttle/blocking_conditions.proto package throttle import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.15.5 // source: report/report.proto package report import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "s...
package bittorrent import ( "context" "fmt" "log" "net" "net/http" "net/url" "path/filepath" "strconv" "strings" "sync" "time" "honnef.co/go/bittorrent/channel" "honnef.co/go/bittorrent/container" "honnef.co/go/bittorrent/mymath" "honnef.co/go/bittorrent/oursync" "honnef.co/go/bittorrent/protocol" "...
// Copyright 2017 Istio 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 i...
package judge import ( "context" "encoding/json" "errors" "fmt" "io/ioutil" "os" "os/exec" "strconv" "strings" "go.uber.org/zap/buffer" "github.com/si9ma/KillOJ-common/sandbox" "github.com/si9ma/KillOJ-common/utils" "github.com/si9ma/KillOJ-common/codelang" "github.com/si9ma/KillOJ-common/constants" ...
package config import ( "bytes" "fmt" "io/ioutil" "net" "net/url" "os" "regexp" "strconv" "strings" "time" "github.com/BurntSushi/toml" "github.com/lomik/graphite-clickhouse/helper/rollup" "github.com/lomik/zapwriter" ) // Duration wrapper time.Duration for TOML type Duration struct { time.Duration } ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: alarm_mgr_show_alarm_brief_info.proto package cisco_ios_xr_alarmgr_server_oper_alarms_brief_brief_system_history import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not othe...
package gen import ( "fmt" "io" "strconv" "strings" "github.com/glycerine/greenpack/cfg" ) func decode(w io.Writer, cfg *cfg.GreenConfig) *decodeGen { return &decodeGen{ p: printer{w: w, cfg: cfg}, hasfield: false, cfg: cfg, } } type decodeGen struct { passes p printer hasfield bo...
package jvn import ( "encoding/xml" "fmt" "net/http" "net/url" "regexp" "runtime" "strings" "time" "github.com/PuerkitoBio/goquery" "github.com/spf13/viper" "github.com/vulsio/go-cve-dictionary/fetcher" "github.com/vulsio/go-cve-dictionary/log" "github.com/vulsio/go-cve-dictionary/models" "github.com/vu...
/* 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 writing, software dist...
package types // SchemaConverter is available for those types which resemble // a Schema object, such as Parameter and Items. The resulting // Schema will not be 100% compatible as the original object as // available fields differ slightly, but should be close enough // to be used interchangeably. type SchemaConverter...