text stringlengths 8.57k 38.1k |
|---|
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc (unknown)
// source: common/common.proto
package common
import (
annotations "google.golang.org/genproto/googleapis/api/annotations"
httpbody "google.golang.org/genproto/googleapis/api/httpbody"
protoreflect "... |
package xroute
import (
"context"
"fmt"
"net/http"
"net/url"
"strings"
"sync"
"time"
"github.com/pkg/errors"
"github.com/go-chi/chi/middleware"
)
var (
_ Router = &Mux{}
)
const (
SkipErrorInterseption key = iota
SkipRequestLogger
)
type key uint32
type ErrorHandler func(URL *url.URL, debug bool, w R... |
/*
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 nodelet
import (
"context"
"fmt"
"io/ioutil"
"os"
"reflect"
"strconv"
"time"
"github.com/ghodss/yaml"
"go.uber.org/zap"
"github.com/platform9/nodelet/nodelet/pkg/phases"
"github.com/platform9/nodelet/nodelet/pkg/utils/config"
"github.com/platform9/nodelet/nodelet/pkg/utils/constants"
"github.com... |
package main
// helper functions
import (
"bytes"
"fmt"
"net/http"
"strings"
// for manipulating images
"image"
"image/color"
"image/draw"
"image/jpeg"
"math"
"github.com/disintegration/gift"
"github.com/golang/freetype"
"github.com/llgcode/draw2d/draw2dimg"
// for MS Cognitive Services
cog "github.... |
package wiki
import (
"github.com/gomarkdown/markdown"
mis "github.com/shylinux/toolkits"
"contexts/ctx"
"contexts/web"
"toolkit"
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"path"
"strconv"
"strings"
"text/template"
)
type opt struct {
font_size int
font_color string
background string
padding in... |
/*
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, ... |
/*
Copyright 2019 The Kruise Authors.
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 appli... |
// goxc is a build tool with a focus on cross-compilation, plus packaging and deployment features.
package main
/*
Copyright 2013 <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
... |
package libkb
import (
"encoding/base64"
"errors"
"fmt"
"github.com/keybase/client/go/msgpack"
keybase1 "github.com/keybase/client/go/protocol/keybase1"
"github.com/keybase/go-codec/codec"
)
// See comment at top of sig_chain.go for a description of V1, V2 and
// V2 stubbed sigchain links.
type SigchainV2Type... |
// Copyright 2012 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 cookiejar implements an in-memory RFC 6265-compliant http.CookieJar.
//
// This implementation is a fork of net/http/cookiejar which also
// implemen... |
// Package ingest contains the new ingestion system for horizon.
// It currently runs completely independent of the old one, that means
// that the new system can be ledgers behind/ahead the old system.
package ingest
import (
"context"
"fmt"
"net/http"
"sync"
"time"
"github.com/prometheus/client_golang/prometh... |
// Copyright (c) 2018,2019 Zededa, Inc.
// SPDX-License-Identifier: Apache-2.0
// Handle NetworkInstanceStatus from zedrouter
package zedagent
import (
"bytes"
"fmt"
"net"
"strings"
"time"
"github.com/golang/protobuf/ptypes/timestamp"
"github.com/golang/protobuf/proto"
"github.com/golang/protobuf/ptypes"
... |
// Copyright 2020 The Bazel 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... |
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use ... |
// 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 asefile
// Some color definitions
// Just used here by certain packets
type AsepriteRGB24 struct {
R, G, B byte
}
/**
* ASE files use Intel (little-endian) byte order.
*
* BYTE: An 8-bit unsigned integer value
* WORD: A 16-bit unsigned integer value
* SHORT: A 16-bit signed integer value
* DWORD: A 32... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/dialogflow/v2/webhook.proto
package dialogflow
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
_struct "github.com/golang/protobuf/ptypes/struct"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
// Refer... |
// Copyright 2015 Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
// +build linux darwin freebsd
package cups
/*
#cgo LDFLAGS: -lcups
#include "cups.h"
*/
import "C... |
// Copyright © 2017-2019 Weald Technology Trading
// 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... |
// Copyright 2018 The go-python Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Make a symbol table to identify which variables are glocal, closure or local
// FIXME stop panics escaping this package
// FIXME tests for Varkeywo... |
/*
* Copyright 2021 ByteDance 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 ... |
// The MIB module for SNMP entities.
//
// Copyright (C) The Internet Society (2002). This
// version of this MIB module is part of RFC 3418;
// see the RFC itself for full legal notices.
package snmpv2_mib
import (
"fmt"
"github.com/CiscoDevNet/ydk-go/ydk"
"github.com/CiscoDevNet/ydk-go/ydk/types"
"g... |
// Copyright 2017 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, ... |
package nvim
const (
// EventBufChangedtick event name of "nvim_buf_changedtick_event".
EventBufChangedtick = "nvim_buf_changedtick_event"
// EventBufLines event name of "nvim_buf_lines_event".
EventBufLines = "nvim_buf_lines_event"
// EventBufDetach event name of "nvim_buf_detach_event".
EventBufDetach = "nvi... |
package probe
import (
"os"
"reflect"
"runtime"
"strings"
"sync"
"syscall"
"time"
log "github.com/sirupsen/logrus"
"github.com/neuvector/neuvector/agent/dp"
"github.com/neuvector/neuvector/agent/probe/netlink"
"github.com/neuvector/neuvector/agent/probe/ringbuffer"
"github.com/neuvector/neuvector/agent/w... |
package nes
import (
"fmt"
)
type Cpu struct {
PC uint16 //Programing Counter, which instruction to read next
SP byte //Stack pointer,
//Registers
A byte //Accumlator, copying to and from memory + maths fuctions
X byte //X Register
Y byte //Y Register
S byte //Status, 8 flags, for more info see statusflags... |
package objects
import (
"fmt"
"github.com/bulutistan/go-sophos/sophos"
)
// Qos is a generated struct representing the Sophos Qos Endpoint
// GET /api/nodes/qos
type Qos struct {
Advanced struct {
Ecn int64 `json:"ecn"`
KeepClassAfterEncap int64 `json:"keep_class_after_encap"`
} `json:"advan... |
package backend
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net"
"net/url"
"os"
"path"
"strconv"
"strings"
"text/template"
"time"
"github.com/VictorLowther/jsonpatch2/utils"
"github.com/digitalrebar/provision/models"
)
type Sizer interface {
Size() int64
}
type ReadSizer interface {
io.Reader
Size... |
package mnemonicode
// WordListVersion is the version of compiled in word list.
const WordListVersion = "0.7"
var wordMap = make(map[string]int, len(WordList))
func init() {
for i, w := range WordList {
wordMap[w] = i
}
}
const longestWord = 7
var WordList = []string{
"academy", "acrobat", "active", "actor", ... |
// generated by stacks/gong/go/models/orm_file_per_struct_back_repo.go
package orm
import (
"database/sql"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"log"
"os"
"path/filepath"
"sort"
"time"
"gorm.io/gorm"
"github.com/tealeg/xlsx/v3"
"github.com/fullstack-lang/gongsim/go/models"
)
// dummy variable to... |
package bittorrent
import (
"fmt"
"math/big"
"math/rand"
"sort"
"sync"
"sync/atomic"
"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"
)
// TODO implement dynamic slot allocati... |
// Copyright 2019 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License,... |
package client
import (
"context"
"fmt"
"io"
"math"
"net/http"
"os"
"sort"
"strings"
"sync"
"time"
// tcell is the termbox-compatible library for abstracting away escape sequences, etc.
// as of tcell#252, the number of default distributed terminals is relatively limited
// additional terminal definition... |
/*
Copyright 2016 The Fission 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, sof... |
// Copyright 2017 HootSuite Media Inc.
//
// Licensed under the Apache License, Version 2.0 (the License);
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in ... |
// Package ec provides erasure coding (EC) based data protection for AIStore.
/*
* Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved.
*/
package ec
import (
"bytes"
"fmt"
"io"
"io/ioutil"
"os"
"sync"
"time"
"unsafe"
"github.com/NVIDIA/aistore/3rdparty/atomic"
"github.com/NVIDIA/aistore/3rdp... |
// Copyright 2020-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... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
package helper
import (
"bytes"
"compress/gzip"
"encoding/hex"
"fmt"
"html/template"
"image"
"math/rand"
"crypto/md5"
"time"
"strconv"
"os"
"io"
"strings"
"crypto/sha1"
"net/url"
"os/exec"
"io/ioutil"
"regexp"
"errors"
"net/http"
"path/filepath"
"github.com/PuerkitoBio/goquery"
"gi... |
// 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 ... |
// Package conf parses start up args and config file
package conf
import (
"errors"
"fmt"
"io/ioutil"
"os"
"path"
"path/filepath"
"strconv"
"strings"
"github.com/MG-RAST/golib/goconfig/config"
"gopkg.in/yaml.v2"
)
// types Config
type TypeConfig struct {
ID string `bson:"id" json:"id" yaml:"ID" `... |
// Package go2ts is an extremely simple and powerful Go to TypeScript generator.
// It can handle all JSON serializable Go types and also has the ability to
// define TypeScript union types for your enum-like types.
package go2ts
import (
"fmt"
"go/ast"
"io"
"reflect"
"strings"
"github.com/skia-dev/go2ts/typesc... |
//
// Copyright 2019 FRAGATA COMPUTER SYSTEMS AG
// Copyright 2017-2018 Intel Corporation
//
// 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-... |
// Copyright (c) 2017 Couchbase, 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 w... |
// Copyright 2020 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, ... |
// Copyright 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... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: peer/chaincode.proto
package peer
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... |
package c8y
import (
"crypto/tls"
"encoding/base64"
"encoding/json"
"errors"
"fmt"
"math"
"net/http"
"net/url"
"os"
"os/signal"
"strconv"
"strings"
"sync"
"sync/atomic"
"time"
"github.com/gorilla/websocket"
"github.com/obeattie/ohmyglob"
"github.com/tidwall/gjson"
tomb "gopkg.in/tomb.v2"
)
const (... |
package main
import (
"database/sql"
"errors"
"fmt"
"github.com/BurntSushi/toml"
_ "github.com/go-sql-driver/mysql"
"regexp"
"strconv"
"time"
)
type MySQL struct {
db *sql.DB
config MySQLConfig
log Logger
}
type MySQLConfig struct {
Host string `toml:"host"`
User ... |
package kubeversion
//-----------------------------------------------------------------------------
// Kubernetes version-specific data for customizing code that's
// emitted.
//-----------------------------------------------------------------------------
var versions = map[string]versionData{
"v1.7.0": versionData{... |
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to You under the Apache License, Version 2.0
// (the "License"); you may not... |
package customer
import (
"encoding/json"
"github.com/pagely/chargebee-go/enum"
"github.com/pagely/chargebee-go/filter"
customerEnum "github.com/pagely/chargebee-go/models/customer/enum"
)
type Customer struct {
Id string `json:"id"`
FirstName ... |
package chainvalidate
import (
"errors"
"strings"
"sync"
"time"
belogs "github.com/astaxie/beego/logs"
certutil "github.com/cpusoft/goutil/certutil"
conf "github.com/cpusoft/goutil/conf"
convert "github.com/cpusoft/goutil/convert"
hashutil "github.com/cpusoft/goutil/hashutil"
jsonutil "github.com/cpusoft/go... |
// Copyright 2021 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... |
/*
Copyright SecureKey Technologies Inc. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package startcmd
import (
"context"
"crypto/tls"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"path"
"path/filepath"
"strconv"
"strings"
"time"
"github.com/cenkalti/backoff/v4"
oidcp "github.com/coreos/... |
// 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... |
/*
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, ... |
//model公用操作
package models
import (
"fmt"
"github.com/alexcesaro/mail/mailer"
"github.com/TruthHun/DocHub/helper"
"reflect"
"strings"
"errors"
"github.com/astaxie/beego"
"github.com/astaxie/beego/orm"
"os"
"net/mail"
"os/exec"
"strconv"
"time"
_ "github.com/go-sql-driver/mysql"
)
//Ormer对象
va... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: transformer/request/request.proto
package request
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
... |
// Provides Filesystem Stats
package fs
import (
"bufio"
"fmt"
"io/ioutil"
"os"
"os/exec"
"path"
"path/filepath"
"regexp"
"strconv"
"strings"
"sync"
"syscall"
"time"
"github.com/docker/docker/pkg/mount"
"github.com/fsouza/go-dockerclient"
"github.com/intelsdi-x/kubesnap-plugin-collector-docker/wrapper... |
package main
import (
"bytes"
"context"
"encoding/base64"
"fmt"
"io"
"io/ioutil"
"net"
"os"
"path/filepath"
"strconv"
"strings"
"sync"
"time"
"crypto/rand"
mathRand "math/rand"
"github.com/dustin/go-humanize"
"github.com/ipfs/go-bitswap"
"github.com/ipfs/go-bitswap/network"
"github.com/ipfs/go-dat... |
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to You under the Apache License, Version 2.0
// (the "License"); you may not... |
/*
* BSD-3-Clause
* Copyright 2020 sot (PR_713, C_rho_272)
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and th... |
// Copyright 2011, <NAME>. All rights reserved.
// Copyright 2018, <NAME>. All rights reserved.
// Use of this code is governed by a BSD license that can be
// found in the LICENSE.txt file.
package sipparser
import (
"errors"
"fmt"
"strings"
)
const (
sipParseStateStartLine = "SipParseStateStartLine"
sipPar... |
// Copyright 2015 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.
package params
import (
"time"
"github.com/juju/juju/core/life"
"github.com/juju/juju/storage"
)
// MachineBlockDevices holds a machine tag and the block devices present
// on that machine.
type MachineBlockDevices struc... |
// Code generated from /Users/tlarsen/Documents/Repositories/alteryx_formulas/grammar/AlteryxFormulas.g4 by ANTLR 4.8. DO NOT EDIT.
package parser // AlteryxFormulas
import "github.com/antlr/antlr4/runtime/Go/antlr"
// BaseAlteryxFormulasListener is a complete listener for a parse tree produced by AlteryxFormulasPar... |
package mpesa
import (
"bytes"
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"encoding/base64"
"encoding/json"
"encoding/pem"
"errors"
"fmt"
"github.com/jwambugu/mpesa-golang-sdk/pkg/config"
"github.com/patrickmn/go-cache"
"io"
"io/ioutil"
"net"
"net/http"
"net/url"
"os"
"strconv"
"strings"
"time"
)
ty... |
// Copyright 2020 <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 writing, sof... |
// Code generated by go generate; DO NOT EDIT.
// This file was generated from GraphQL schema
package model
import "time"
type EnumEmailTemplateType string
const EnumEmailTemplateTypeResetPassword EnumEmailTemplateType = "RESET_PASSWORD"
const EnumEmailTemplateTypePasswordResetedNotification EnumEmailTemplateType =... |
package pkg
import (
"fmt"
"github.com/lanl/clp"
"math"
"sort"
)
// nameToNode keeps track of the name to node mapping ( "a"-> Node("a")).
type nameToNode = map[string]Node
//lpVariable describe a linear programming variable for the quorum system.
type lpVariable struct {
Name string
Index int
Value float... |
// Copyright The OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... |
// +build !providerless
/*
Copyright 2015 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 ... |
package stackdriver
import (
"context"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"math"
"net/http"
"net/url"
"path"
"regexp"
"strconv"
"strings"
"time"
"github.com/grafana/grafana/pkg/api/pluginproxy"
"github.com/grafana/grafana/pkg/components/null"
"github.com/grafana/grafana/pkg/components/simplejs... |
package orm
import (
"context"
"fmt"
"testing"
"time"
apexLog "github.com/apex/log"
"github.com/apex/log/handlers/memory"
"github.com/stretchr/testify/assert"
)
type obj struct {
ID uint64
StorageKey string
Data interface{}
}
type flushStruct struct {
Name string
Age int
}
type flushEnt... |
/*
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 template
import (
"fmt"
"path"
"path/filepath"
"sort"
"strings"
"github.com/pkg/errors"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/gengo/args"
"k8s.io/gengo/generator"
"k8s.io/gengo/types"
"k8s.io/klog"
)
type APIs struct {
// Domain is the domain portion of the group - e.g. k8s.io
Domain strin... |
// 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 png
import (
"bufio"
"compress/zlib"
"encoding/binary"
"hash/crc32"
"image"
"image/color"
"io"
"strconv"
)
// Encoder configures encoding PNG ... |
// 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 logging provides functionality for printing log messages at various importance levels.
*/
package logging
import (
"fmt"
"io"
"os"
"runtime"
"strings"
"time"
)
// Available verbosity levels.
const (
// Print LOG or higher priority messages. LOG is directed to Stdout by default.
LOG = iota
... |
// Copyright 2016 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 2021 Matrix Origin
//
// 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.
// versions:
// protoc-gen-go v1.25.0
// protoc v4.0.0
// source: proto/TransactionRecord.proto
package proto
import (
proto "github.com/golang/protobuf/proto"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/proto... |
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.md', which is part of this source code package.
*/
package creator
import (
"errors"
goimage "image"
"io"
"os"
"strconv"
"github.com/pzduniak/unipdf/common"
"github.com/pzduniak/unipdf/model"
)
// Creator is a wrapper around ... |
package redis
import (
"errors"
"fmt"
"strconv"
"strings"
"github.com/mediocregopher/radix/v3"
"github.com/rsms/ent"
)
func debugTrace(format string, args ...interface{}) {
// The Go compiler will strip all invocations of debugTrace when the function body is empty.
// (un)comment the next line to toggle debu... |
// Copyright 2014 The Cockroach Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.19.1
// source: Qot_UpdatePriceReminder.proto
package qotupdatepricereminder
import (
_ "github.com/gandalf1024/go-futu-api/pb/common"
qotcommon "github.com/gandalf1024/go-futu-api/pb/qotcommon"
protoreflec... |
// Copyright 2015-2017 Piprate Limited
//
// 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... |
// Copyright 2021 Matrix Origin
//
// 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 ... |
// cmd/7l/noop.c, cmd/7l/obj.c, cmd/ld/pass.c from Vita Nuova.
// https://code.google.com/p/ken-cc/source/browse/
//
// Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved.
// Portions Copyright © 1995-1997 <NAME> (<EMAIL>)
// Portions Copyright © 1997-1999 Vita Nuova Limited
// Portions Copyright ©... |
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/google/cloudprober/rds/proto/rds.proto
package proto
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
mat... |
package tui
import (
"fmt"
"strings"
"time"
"github.com/gdamore/tcell"
"github.com/mylxsw/go-toolkit/collection"
"github.com/mylxsw/redis-tui/api"
"github.com/mylxsw/redis-tui/config"
"github.com/mylxsw/redis-tui/core"
"github.com/rivo/tview"
)
type primitiveKey struct {
Primitive tview.Primitive
Key ... |
//go:generate stringer -type=rbModel
package remotebox
import (
"bufio"
"fmt"
"io"
"log"
"net"
"strconv"
"strings"
"sync"
"time"
sw "github.com/dh1tw/remoteSwitch/switch"
"github.com/tarm/serial"
)
type rbModel int
const (
rbUnknown rbModel = iota
rb1x6
rb2x6
rb1x8
rb2x8
rb2x12
rb4sq
rb4sqplus
)... |
package bgfx
/*
#cgo CPPFLAGS: -I include -msse2
#cgo CXXFLAGS: -fno-rtti -fno-exceptions
#cgo darwin CPPFLAGS: -I include/compat/osx
#cgo darwin LDFLAGS: -framework Cocoa -framework OpenGL
#cgo linux LDFLAGS: -lGL
#include "bgfx.c99.h"
#include "bridge.h"
*/
import "C"
import (
"errors"
"fmt"
"io"
"reflect"
"uns... |
/**
* (C) 2021 Geotab Inc
*
* All files and artifacts in the repository at https://github.com/w3c/automotive-viss2
* are licensed under the provisions of the license provided by the LICENSE file in this repository.
*
**/
/**************** Proprietary compression reference implementation ***********************/
packa... |
// Code generated by protoc-gen-go.
// source: coord_grpc.proto
// DO NOT EDIT!
/*
Package coordgrpc is a generated protocol buffer package.
It is generated from these files:
coord_grpc.proto
It has these top-level messages:
CoordErr
RpcTopicData
ChannelConsumerOffset
CommitLogData
NsqdMessage
RpcChannelOffse... |
// 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 ... |
// Code generated by goyacc - DO NOT EDIT.
package parser
import __yyfmt__ "fmt"
// header of parser.y
import (
"fmt"
//"encoding/json"
//"log"
"strconv"
"time"
)
type yySymType struct {
yys int
typeBool bool
typeString string // holds: variable, number, or text
typeScalar scalar
typeList []sc... |
package dota2api
import (
"encoding/json"
"errors"
"fmt"
"sort"
"strconv"
"time"
)
func (api Dota2) getMatchDetailsUrl() string {
return fmt.Sprintf("%s/%s/%s/", api.dota2MatchUrl, "GetMatchDetails", api.dota2ApiVersion)
}
type matchDetailsJSON struct {
Result matchJSON `json:"result"`
}
type matchJSON stru... |
package basic
import (
"fmt"
"testing"
)
type md5Datum struct {
password string
salt string
hashed string
}
var md5TestData = []md5Datum{
md5Datum{"mickey5", "gxNb79DX", "6wi9QaGNM5TA0kBKiC4710"},
md5Datum{"alexandrew", "kv1uUfCO", "iEwrWojf92uZ/9uhTQmMo."},
md5Datum{"hawaiicats78", "UQ6GxE7V", "OrIqWO... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.