text
stringlengths
5.51k
28.1k
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.17.1 // source: configManager.proto package pb import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/...
// Copyright (c) <NAME> <<EMAIL>>. All rights reserved. Use // of this source code is governed by the MIT license that can be found in // the LICENSE file. package girc import ( "fmt" "sync" "sync/atomic" "time" cmap "github.com/orcaman/concurrent-map" ) // state represents the actively-changing variables with...
package code import ( "encoding/binary" "fmt" "math" ) // Opcode is the type of opcodes type Opcode uint32 // There are 7 types of opcodes (Typ0 - Type7). The type of opcode is defined // by the most significant 4 bits of the opcode. // Prefixes for the different types of opcodes. Note: there is an unused pref...
/* 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 or agreed to in writing, ...
package main import ( "encoding/json" "io/ioutil" "log" "os" "path" "time" "github.com/frustra/bbcode" ) var ( config GochanConfig accessLog *log.Logger errorLog *log.Logger modLog *log.Logger readBannedIPs []string bbcompiler bbcode.Compiler ) type RecentPost struct { BoardN...
package canvas import ( "image" "image/color" "math" "strings" "github.com/Laughs-In-Flowers/warhola/lib/util/mth" ) type ColorModel int const ( COLORNOOP ColorModel = iota ALPHA ALPHA16 CMYK GRAY GRAY16 NRGBA NRGBA64 RGBA RGBA64 ) func (c ColorModel) String() string { switch c { case ALPHA: ret...
package brownout import ( "container/ring" "fmt" "github.com/golang/glog" "github.com/jcmoraisjr/haproxy-ingress/pkg/types" "math" "time" ) type Controller interface { Next(current float64, lastUpdate time.Duration) float64 SetGoal(newGoal float64) SetController(controller PIController) UpdateControllerPara...
// Copyright 2020 The PipeCD 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...
package kataribe import ( "bufio" "fmt" "io" "math" "regexp" "runtime" "sort" "strconv" "strings" "sync" ) type Kataribe struct { config Config in io.Reader out io.Writer columns []*Column } type Config struct { RankingCount int `toml:"ranking_count"` SlowCount int `toml:"slow_count"...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.10.0 // source: proto/helper_user.proto package skysign_proto import ( _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "goo...
// SPDX-FileCopyrightText: 2020 SAP SE // SPDX-FileCopyrightText: 2021 SAP SE // // SPDX-License-Identifier: Apache-2.0 package tds import ( "fmt" "math" ) //go:generate stringer -type=CapabilityType // CapabilityType is the type of capabilities. type CapabilityType byte // Types of capabilities. const ( Capabi...
package stream import ( "fmt" "log" "math/rand" "time" "github.com/lucasb-eyer/go-colorful" "github.com/matt-g-everett/ledtx/stream/stripe" ) // Controller that manages animations. type Controller struct { calibrate *Calibrate animationIndex int animationPlaylist []string animation ...
// Code generated from RFC5322Parser.g4 by ANTLR 4.9.3. DO NOT EDIT. package parser // RFC5322Parser import "github.com/antlr/antlr4/runtime/Go/antlr" // BaseRFC5322ParserListener is a complete listener for a parse tree produced by RFC5322Parser. type BaseRFC5322ParserListener struct{} var _ RFC5322ParserListener =...
// Copyright (c) 2014 Datacratic. All rights reserved. package rest import ( "bytes" "fmt" "strconv" "testing" ) func printPath(path ...PathItem) string { buffer := new(bytes.Buffer) buffer.WriteString("/") for _, item := range path { buffer.WriteString(item.String()) buffer.WriteString("/") } return ...
package serialization import ( "fmt" "reflect" "strconv" "testing" "github.com/stretchr/testify/assert" ) type cm struct { v int } func (c *cm) Marshal(s Encoder) error { if err := s.WriteTypeMeta(FabricSerializationTypeChar); err != nil { return nil } return s.WriteBinary([]byte(strconv.Itoa(c.v))[0]) }...
package main import ( "gitee.com/jntse/gotoolkit/log" "gitee.com/jntse/gotoolkit/util" _"gitee.com/jntse/gotoolkit/eventqueue" "gitee.com/jntse/gotoolkit/net" "gitee.com/jntse/minehero/server/tbl" "gitee.com/jntse/minehero/server/def" "gitee.com/jntse/minehero/pbmsg" pb "github.com/golang/protobuf/proto" "enco...
// Copyright 2022 Teamgram 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 app...
package bvfile import ( "bytes" "encoding/json" "errors" "fmt" "reflect" "strconv" "google.golang.org/protobuf/proto" ) const ( BitsUint8 = 8 BitsUint16 = 16 BitsUint32 = 32 BitsUint64 = 64 BitsUintX = 100 // string ) // bv bin data format type BvFileIndex struct { Name string Size int Index int ...
package mustinit import ( "bytes" "flag" "fmt" "go/ast" "go/printer" "go/token" "go/types" "reflect" "sort" "strings" "golang.org/x/tools/go/analysis" "golang.org/x/tools/go/analysis/passes/inspect" "golang.org/x/tools/go/ast/inspector" ) var Analyzer = &analysis.Analyzer{ Name: "mustinit", Doc: ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: admin/recovery/recovery.proto package admin import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "...
/* Package simpledb implements a one-table version of LevelDB It buffers all writes in memory; to make data durable, call Compact(). This operation re-writes all of the data in the database (including in-memory writes) in a crash-safe manner. Keys in the table are cached for efficient reads. */ package simpledb impor...
package snowflake import ( "database/sql" "fmt" "log" "sort" "strconv" "strings" "github.com/jmoiron/sqlx" ) const SnowflakeTable = "snowflake_table" type TableB struct { CreatedOn sql.NullString `db:"created_on"` Name sql.NullString `db:"name"` DatabaseName sql.NullString ...
package pool import ( "context" "errors" "fmt" "strings" "sync" "time" "github.com/AliyunContainerService/terway/pkg/metric" "github.com/AliyunContainerService/terway/pkg/tracing" "github.com/prometheus/client_golang/prometheus" "github.com/AliyunContainerService/terway/types" log "github.com/sirupsen/log...
/* Copyright 2020 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. 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 di...
package instructions import "fmt" import "jvmgo/ch09/instructions/base" import . "jvmgo/ch09/instructions/comparisons" import . "jvmgo/ch09/instructions/constants" import . "jvmgo/ch09/instructions/control" import . "jvmgo/ch09/instructions/conversions" import . "jvmgo/ch09/instructions/extended" import . "jvmgo/ch09/...
package i18n import ( "github.com/axgle/mahonia" ) var ( enc = mahonia.NewDecoder("gbk") // EncoderGbkUtf8 默认的GBK转换为UTF8的编码器 EncoderGbkUtf8 = func(str string) string { return enc.ConvertString(str) } ) const ( LOCAL_NONE = Local(``) // 无 LOCAL_af = Local(`af`) // 公用荷兰语 LOCAL...
package main import ( "image" "image/color" "image/draw" "runtime" "strconv" "strings" "vimagination.zapto.org/minecraft" "vimagination.zapto.org/minecraft/nbt" "vimagination.zapto.org/minewebgen/internal/data" "vimagination.zapto.org/ora" ) func toGray(o *ora.ORA, name string) (*image.Gray, error) { var ...
package iec103 import ( "errors" "fmt" "math" "strconv" "strings" ) const ( //start character StartCharacter10 = "10" //end character Endcharacter = "16" StartCharacter68 = "68" ) type Iec103ConfigClient struct { LinkAddress string /* FCB(Frame Count Degree):FCB = 0 or 1 ——Each time the maste...
// // (C) Copyright 2019-2021 Intel Corporation. // // SPDX-License-Identifier: BSD-2-Clause-Patent // package storage /* #include "stdlib.h" #include "daos_srv/control.h" */ import "C" import ( "fmt" "strings" "sync" "github.com/dustin/go-humanize" "github.com/pkg/errors" "github.com/daos-stack/daos/src/con...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.23.0 // protoc v3.19.1 // source: envoy/extensions/filters/network/sni_cluster/v3/sni_cluster.proto package sni_clusterv3 import ( _ "github.com/cncf/xds/go/udpa/annotations" proto "github.com/golang/protobuf/proto" protoref...
package page import ( "fmt" "image/color" "math/rand" "strings" "time" "gioui.org/text" "gioui.org/layout" "gioui.org/unit" "gioui.org/widget" "github.com/planetdecred/dcrlibwallet" "github.com/planetdecred/godcr/ui/decredmaterial" "github.com/planetdecred/godcr/ui/load" "github.com/planetdecred/godcr...
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License i...
package chunk import ( "errors" "flag" "fmt" "os" "strconv" "time" "github.com/go-kit/kit/log/level" "github.com/prometheus/common/model" "github.com/weaveworks/common/mtime" yaml "gopkg.in/yaml.v2" "github.com/cortexproject/cortex/pkg/util" "github.com/cortexproject/cortex/pkg/util/flagext" ) const ( ...
// Copyright (c) 2012-2013 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...
package test import ( "bytes" "errors" "fmt" "math/rand" "os" "os/exec" "path/filepath" "runtime" "runtime/debug" "strings" "sync" "syscall" "testing" "time" "github.com/micro-community/micro/v3/cmd/cli/namespace" "github.com/micro-community/micro/v3/util/user" ) const ( minPort = 8000 maxPort = 60...
// Copyright (c) 2017-2019 Tigera, 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 ap...
package azure import ( "fmt" "math" "sort" "strings" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" ) type skuType int const ( DTU skuType = 0 VCore skuType = 1 ) type sku struct { Name, Tier, Family string Capacity int ...
// Copyright 2017 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
package web // Code generated by internal/dog.go DO NOT EDIT! // A returns an <a> element with optional children or attributes func A(c ...interface{}) *Element { return NewElement("a", c...) } // Abbr returns an <abbr> element with optional children or attributes func Abbr(c ...interface{}) *Element { return NewE...
package wasi import ( crand "crypto/rand" "errors" "io" "io/fs" "math" mrand "math/rand" "os" "reflect" "time" "github.com/tetratelabs/wazero/wasm" ) // API includes all host functions to export for WASI version "wasi_snapshot_preview1" // // Note: When translating WASI functions, each result besides Errno...
// Copyright (c) 2018, The GoKi 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 Units supports full range of CSS-style length units (em, px, dp, etc) The unit is stored along with a value, and can be converted at a late...
// go-vs-php-file-parse test package main import ( "bufio" "crypto/md5" "errors" "flag" "fmt" "io" "log" "net" "net/http" _ "net/http/pprof" "os" "path/filepath" "strconv" "sync" "time" ) // type stat struct { lines uint64 bytes uint64 sizes uint64 done bool err error } // default logger var ...
/* Copyright IBM Corp All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package e2e import ( "fmt" "io/ioutil" "os" "path/filepath" "time" "github.com/gogo/protobuf/proto" "github.com/hyperledger/fabric/common/cauthdsl" "github.com/hyperledger/fabric/common/tools/configtxlator/update" "github.com...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.16.0 // source: envoy/admin/v4alpha/listeners.proto package envoy_admin_v4alpha import ( _ "github.com/cncf/xds/go/udpa/annotations" v4alpha "github.com/envoyproxy/go-control-plane/envoy/config/core/v4alpha"...
// Package camellia is an implementation of the CAMELLIA encryption algorithm /* This is an unoptimized version based on the description in RFC 3713. References: http://en.wikipedia.org/wiki/Camellia_%28cipher%29 https://info.isl.ntt.co.jp/crypt/eng/camellia/ */ package camellia import ( "crypto/cipher"...
package main import ( "fmt" "sort" "strings" "github.com/dave/jennifer/jen" "github.com/iancoleman/strcase" ) func addCodeObjects(f *jen.File, objects map[string]jen.Code) { keys := []string{} for key := range objects { keys = append(keys, key) } sort.Strings(keys) for _, key := range keys { f.Add(obj...
/* 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...
package main import ( "context" "crypto/tls" "encoding/json" "flag" "fmt" "io/ioutil" "math" "net" "net/http" "os" "os/signal" "path/filepath" "strings" "sync/atomic" "syscall" "time" ) type RESUME struct { Size int64 `json:"size"` Modified int64 `json:"modified"` Concurrency in...
/* Copyright 2011 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
// Package gdrive implements Storage based on Google Drive. package gdrive import ( "context" "encoding/json" "fmt" "net/http" "os" "strings" "time" "github.com/pkg/errors" "golang.org/x/oauth2" "golang.org/x/oauth2/google" drive "google.golang.org/api/drive/v3" "google.golang.org/api/googleapi" "google....
/* 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 api import ( "encoding/json" "fmt" "net/http" "github.com/HyperspaceApp/Hyperspace/crypto" "github.com/HyperspaceApp/Hyperspace/encoding" "github.com/HyperspaceApp/Hyperspace/modules" "github.com/HyperspaceApp/Hyperspace/types" "github.com/coreos/bbolt" "github.com/julienschmidt/httprouter" ) // Co...
// Copyright 2013 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...
/* * Copyright (C) 2016 Red Hat, Inc. * * 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 Licens...
// 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
package main import ( "os" "os/user" "path" _ "bytes" "context" "encoding/hex" "fmt" "io/ioutil" "log" "math/rand" "time" _ "github.com/kr/pretty" "gopkg.in/yaml.v2" "encoding/json" "net/http" "github.com/gorilla/mux" "github.com/syntaqx/echo-middleware/requestid" ) var letterRunes = []rune("0123...
package internal import ( "fmt" "log" "os" "os/exec" "runtime" "sort" "strconv" "strings" "sync" "time" "github.com/gdamore/tcell" "github.com/rivo/tview" ) // Controller handles the logic and keep everything together type Controller struct { rss *RSS db *DB win *Window ...
// Copyright Project Contour Authors // // Licensed under the Apache License, Version 2.0 (the "License"); you may // not use this file except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
// Copyright ©2015 The Gonum Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package plot import ( "image/color" "io" "math" "os" "path/filepath" "strings" "gonum.org/v1/plot/vg" "gonum.org/v1/plot/vg/draw" ) var ( // Def...
package pagsego import ( "bytes" "crypto/tls" "encoding/xml" "fmt" "io" "log" "net" "net/http" "strconv" "time" "github.com/paulrosania/go-charset/charset" _ "github.com/paulrosania/go-charset/data" ) const ( ShippingPAC = 1 ShippingSEDEX = 2 ShippingOther = 3 XMLHeader = `<?xml version...
// Copyright (c) 2017 Uber Technologies, Inc. // // 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v0/enums/user_list_size_range.proto package enums // import "google.golang.org/genproto/googleapis/ads/googleads/v0/enums" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppr...
package main import ( "bytes" "encoding/binary" "fmt" "io" "log" "math/rand" "net" "strconv" "strings" "sync" "time" ) // command id const ( GENERIC_NACK = 0x80000000 BIND_RECEIVER = 0x00000001 BIND_TRANSMITTER = 0x00000002 BIND_TRANSCEIVER = 0x00000009 SUBMIT_SM = 0x00000004 SUBMI...
/* Copyright The Kubeform 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...
package commands import ( "encoding/json" "fmt" "io/ioutil" "os" "strconv" "strings" "time" "github.com/Songmu/prompter" "github.com/oidc-mytoken/api/v0" mytokenlib "github.com/oidc-mytoken/lib" "github.com/oidc-mytoken/server/shared/utils" "github.com/oidc-mytoken/server/shared/utils/unixtime" "github.c...
package fleettracker import ( "math" "sync" "sync/atomic" "time" consulapi "github.com/hashicorp/consul/api" "github.com/leveros/leveros/config" "github.com/leveros/leveros/leverutil" "github.com/leveros/leveros/scale" ) var trackerLogger = leverutil.GetLogger(PackageName, "loadtracker") var ( // TickNumEv...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: ves.io/schema/stored_object/private_customapi.proto // Object Store APIs // // x-displayName: "Stored Object" // // package stored_object import ( context "context" fmt "fmt" _ "github.com/gogo/googleapis/google/api" _ "github.com/gogo/protobuf/gogopr...
package repository import ( "github.com/devtron-labs/devtron/pkg/sql" "github.com/go-pg/pg" "go.uber.org/zap" ) type PluginType string type ScriptType string type ScriptImagePullSecretType string type ScriptMappingType string type PluginStepType string type PluginStepVariableType string type PluginStepVariableValu...
// Copyright 2015-2019 the u-root 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 kexec import ( "debug/elf" "errors" "fmt" "io" "io/ioutil" "os" "path" "path/filepath" "reflect" "sort" "strconv" "strings" "sysca...
package transport import ( "context" "errors" "fmt" "io" "net" "sync" "syscall" "time" "github.com/muirglacier/aw/dht" "github.com/muirglacier/aw/channel" "github.com/muirglacier/aw/codec" "github.com/muirglacier/aw/handshake" "github.com/muirglacier/aw/policy" "github.com/muirglacier/aw/tcp" "github....
// Package oqs provides a GO wrapper for the C liboqs quantum-resistant library. package oqs // import "github.com/open-quantum-safe/liboqs-go/oqs" /* #cgo pkg-config: liboqs #include <oqs/oqs.h> */ import "C" import ( "errors" "fmt" "unsafe" ) /**************** Misc functions ****************/ // MemCleanse set...
package ahrs import ( "math" "github.com/skelterjohn/go.matrix" ) // State holds the complete information describing the state of the aircraft. // Aircraft frame is non-inertial: 1 is to nose; 2 is to left wing; 3 is up. // Earth frame is inertial: 1 is east; 2 is north; 3 is up. // Sensor frame is fixed within ai...
/* Copyright 2019 PlanetScale Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwar...
package egosat import ( "fmt" ) // The SolverParams struct stores the solver parameters pertaining to search. type SolverParams struct { MaxConflict int // Number of conflicts before restart is required MaxLearnts int // Maximum number of learnt clauses to store at one time VarActivityDec...
package main import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/timestreamquery" "go_sample/utils" "os" "flag" "fmt" ) func ExecuteSampleQueries(queryClient *timestreamquery.TimestreamQuery,databaseName string, tableName string, f *os.File){ HO...
package model import ( "bytes" "context" "encoding/json" "fmt" "html/template" "io" "math" "math/rand" "strings" "sync" "time" "github.com/PuerkitoBio/goquery" "github.com/flimzy/kivik" "github.com/flimzy/log" "github.com/pkg/errors" "github.com/FlashbackSRS/flashback" fb "github.com/FlashbackSRS/fl...
// Copyright 2021 <NAME> // // https://github.com/atc0005/check-vmware // // Licensed under the MIT License. See LICENSE file in the project root for // full license information. package config import ( "errors" "flag" "fmt" "os" "strings" "github.com/rs/zerolog" ) // Updated via Makefile builds. Setting plac...
// Copyright (c) <NAME>, <NAME> and Unlock contributors. // All rights reserved. // 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, // ...
package windows import ( "fmt" "path/filepath" "strings" "time" "github.com/openshift/windows-machine-config-operator/pkg/controller/retry" wkl "github.com/openshift/windows-machine-config-operator/pkg/controller/wellknownlocations" "github.com/pkg/errors" "golang.org/x/crypto/ssh" logf "sigs.k8s.io/controll...
// Copyright 2019 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 a...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: proto/grpc/examples/wallet/wallet.proto package wallet 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" math "math" ...
// example v0.0.1 07d79ad7e0e7bc2320ac29fdd065307ce932cf47 // -- // This file has been generated by https://github.com/webrpc/webrpc using gen/golang // Do not edit by hand. Update your webrpc schema and re-generate. package main import ( "bytes" "context" "encoding/json" "fmt" "io/ioutil" "net/http" "strings"...
package fact import ( "fmt" "io" "io/fs" "io/ioutil" "log" "os" "sort" "strings" "time" "github.com/bwmarrin/discordgo" "github.com/hako/durafmt" "ChatWire/cfg" "ChatWire/constants" "ChatWire/cwlog" "ChatWire/disc" "ChatWire/glob" "ChatWire/sclean" ) func SetFactRunning(run bool) { wasrun := FactI...
package tensorf64 import ( "fmt" "github.com/chewxy/gorgonia/tensor/types" "github.com/pkg/errors" ) /* This file contains Tensor methods that deal with operations of a matrix/tensor. */ // Apply applies a function to all the values in the ndarray func (t *Tensor) Apply(fn func(float64) float64, opts ...types.F...
// Code generated by goyacc -p md -o parser.go parser.y. DO NOT EDIT. //line parser.y:2 package syntax import __yyfmt__ "fmt" //line parser.y:2 import "fmt" //line parser.y:8 type mdSymType struct { yys int token Token block Block blocks Blocks } const TOKEN = 57346 const NEWLINE = 57347 const T_CODE_BLO...
package eredis import ( "context" "fmt" "time" "github.com/go-redis/redis/v8" ) // Ping func (r *Component) Ping(ctx context.Context) (string, error) { return r.client.Ping(ctx).Result() } // Get func (r *Component) Get(ctx context.Context, key string) (string, error) { reply, err := r.client.Get(ctx, key).Re...
// Code generated by transpiler. DO NOT EDIT. /** * Go Video Downloader * * Copyright 2019 Tenta, 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.or...
package recoverylog import ( "bufio" "io/ioutil" "os" "path" "path/filepath" log "github.com/sirupsen/logrus" "go.gazette.dev/core/broker/client" pb "go.gazette.dev/core/broker/protocol" "go.gazette.dev/core/message" ) // propertyFiles is well-known paths which should be treated as properties, // rather tha...
package subscription import ( "context" "fmt" "math/big" "reflect" "sync" "time" "github.com/celer-network/eth-services/client" "github.com/celer-network/eth-services/store" "github.com/celer-network/eth-services/store/models" "github.com/celer-network/eth-services/types" ethereum "github.com/ethereum/go-...
package iso9660 import ( "container/list" "encoding/binary" "errors" "fmt" "io" "math" "os" "path" "runtime" "sort" "strings" "time" ) const ( primaryVolumeDirectoryIdentifierMaxLength = 31 // ECMA-119 7.6.3 primaryVolumeFileIdentifierMaxLength = 30 // ECMA-119 7.5 ) var ( // ErrFileTooLarge is r...
package data import ( "fmt" "github.com/fogleman/gg" "github.com/nmaupu/gocube/math3D" "log" "math" ) /** * 3D calculations are based on: * x axis going to the right * y axis going up * z axis going backwards * Matrices computation are using column * [1 0 0 0] [x] * |0 1 0 0| |y| * |0 0 1 0| x |z| *...
package nes // import "fmt" // addressing modes const ( _ = iota Mode_Immediate Mode_Absolute Mode_AbsoluteX Mode_AbsoluteY Mode_Accumulator Mode_Implied Mode_Indirect Mode_IndirectX Mode_IndirectY Mode_Relative Mode_ZeroPage Mode_ZeroPageX Mode_ZeroPageY ) const ( _ = iota ADC AND ASL BCC BCS ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: ps_stats.proto package protos import ( fmt "fmt" common "github.com/batchcorp/plumber-schemas/build/go/protos/common" opts "github.com/batchcorp/plumber-schemas/build/go/protos/opts" proto "github.com/golang/protobuf/proto" math "math" ) // Reference i...
package types // import "github.com/docker/docker/api/types" import ( "errors" "fmt" "io" "os" "strings" "time" "github.com/docker/docker/api/types/container" "github.com/docker/docker/api/types/filters" "github.com/docker/docker/api/types/mount" "github.com/docker/docker/api/types/network" "...
package httpserver import ( "encoding/base64" "fmt" "log" "net/http" "net/url" "strings" "time" "github.com/ChandraNarreddy/siv" "github.com/ChandraNarreddy/swoossh/storage" "github.com/ChandraNarreddy/swoossh/user" "github.com/coreos/go-oidc" "github.com/vmihailenco/msgpack" "golang.org/x/oauth2" ) typ...
/* * The MIT License (MIT) * * Copyright (c) 2019 HereweTech Co.LTD * * 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 *...
package ecovacs import ( "bytes" "crypto/rsa" "encoding/json" "fmt" "html/template" "io/ioutil" "net/http" "net/url" "sort" "strconv" "strings" "time" // Packages home "github.com/djthorpe/mutablehome" "github.com/hashicorp/go-multierror" // Namespace imports . "github.com/djthorpe/go-errors" ) //...
package types type Description struct { En string `json:"en"` De string `json:"de"` Es string `json:"es"` Fr string `json:"fr"` It string `json:"it"` Pl string `json:"pl"` Ro string `json:"ro"` Hu string `json:"hu"` Nl string `json:"nl"` Pt string `json:"pt"` Sv string `json:"sv"` Vi ...
//nolint:dupl package syntax import ( "testing" ) func TestEvalCond(t *testing.T) { t.Parallel() AssertCodesEvalToSameValue(t, `1`, `cond {1 > 0 : 1, 2 > 3: 2, _:1 + 2,}`) AssertCodesEvalToSameValue(t, `1`, `cond {1 > 0 : 1, 2 > 3: 2, _:1 + 2}`) AssertCodesEvalToSameValue(t, `2`, `cond {1 > 2 : 1, 2 < 3: 2, _:1...