text
stringlengths
5.51k
28.1k
/* Copyright 2021. 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 un...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.28.0-devel // protoc v3.19.3 // source: github.com/aperturerobotics/bifrost/stream/listening/listening.proto package stream_listening import ( reflect "reflect" sync "sync" protoreflect "google.golang.org/protobuf/reflect/p...
// Package sharepoint contains a simple interface for retrieving and updating list items from SharePoint Online. // // Usage: // Each public function from this package requires that an Authentication object be passed in. This object must have all of the public fields instantiated. // // Example: /* con := sharepoint.Co...
// Decode INI files with a syntax similar to JSON decoding package ini import ( "bufio" "bytes" "fmt" "io" "io/ioutil" "reflect" "strconv" "strings" ) type Unmatched struct { lineNum int line string } type IniError struct { lineNum int line string error string } // decodeState represents the st...
package sync2 import ( "encoding/json" "sync" "time" "github.com/rs/zerolog" "github.com/tidwall/gjson" ) // alias time.Sleep so tests can monkey patch it out var timeSleep = time.Sleep // V2DataReceiver is the receiver for all the v2 sync data the poller gets type V2DataReceiver interface { UpdateDeviceSince...
// Copyright 2022 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 ...
// 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...
// Package verto is a simple REST framework. It is // plug n' play and includes it's own path // multiplexer, error handler, and response // handler. It is recommended to bring your // own error handling and response handling. // Verto provides users the option to use // middleware globally or per route. The // Verto m...
/* * Copyright 2017 <NAME> (github.com/twa16) * * 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 ...
package humio import ( "bytes" "compress/gzip" "crypto/tls" "encoding/json" "fmt" "io" "io/ioutil" "log" "log/syslog" "net" "net/http" "net/url" "os" "strconv" "strings" "sync" "text/template" "time" "unsafe" "github.com/gliderlabs/logspout/cfg" "github.com/gliderlabs/logspout/router" ) const ( ...
// Package ais provides core functionality for the AIStore object storage. /* * Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved. */ package ais import ( "net/url" "os" "sync" "time" "github.com/NVIDIA/aistore/3rdparty/glog" "github.com/NVIDIA/aistore/cluster" "github.com/NVIDIA/aistore/cmn" ...
package discordgo import ( "strings" "time" ) // A Guild holds all data related to a specific Discord Guild. Guilds are also // sometimes referred to as Servers in the Discord client. type Guild struct { // The ID of the guild. ID string `json:"id"` // The name of the guild. (2–100 characters) Name string `js...
// // Go-FTL / TabServer2 // // Copyright (C) <NAME>, 2012-2017. All rights reserved. // // Do not remove the following lines - used in auto-update. // Version: 0.5.9 // BuildNo: 1811 // FileId: 1011 // package TabServer2 import ( "encoding/base64" "encoding/json" "fmt" "io" "net/http" "os" "strings" "github...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0-devel // protoc v3.5.1 // source: calculator/calculatorpb/calculator.proto package calculatorpb import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/gr...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.19.1 // source: api/helloworld/v1/greeter.proto package v1 import ( _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" _ "google.golang.org/genproto/googleapis/api/annotations" proto...
package nrpc import ( "bufio" "fmt" "io" "net" "github.com/ds248a/nrpc/log" "github.com/ds248a/nrpc/util" ) var DefaultHandler Handler = NewHandler() // Defines message handler of middleware and method/router. type HandlerFunc func(*Context) // Saves all middleware and method/router handler funcs for every m...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/cloud/securitycenter/v1/asset.proto package securitycenter // import "google.golang.org/genproto/googleapis/cloud/securitycenter/v1" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import _struct "github.com/golang/...
// Copyright 2014 Google Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
/* Copyright 2020 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...
/* * Tencent is pleased to support the open source community by making 蓝鲸 available. * Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the L...
package main import ( "bytes" "crypto/rand" "crypto/sha512" "hash" "flag" "fmt" "io" "io/ioutil" "os" "sort" "strings" "time" mathrand "math/rand" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/s3"...
package rhea import ( "compress/gzip" "encoding/json" "encoding/xml" "errors" "io/ioutil" "os" "strconv" "strings" ) /****************************************************************************** Higher level structs These structs are what you would put into a database or directly use. In order to create a...
package dev import ( "encoding/json" "errors" "flag" "fmt" docker "github.com/fsouza/go-dockerclient" "github.com/open-horizon/anax/api" "github.com/open-horizon/anax/cli/cliutils" cliexchange "github.com/open-horizon/anax/cli/exchange" "github.com/open-horizon/anax/cli/register" "github.com/open-horizon/ana...
package alertmanager import ( "context" "flag" "fmt" "html/template" "io/ioutil" "net" "net/http" "os" "sort" "strconv" "strings" "sync" "time" "github.com/go-kit/kit/log/level" amconfig "github.com/prometheus/alertmanager/config" "github.com/prometheus/client_golang/prometheus" "github.com/weavewor...
// Code generated from DCM_2_0_grammar.g4 by ANTLR 4.7.2. DO NOT EDIT. package dcm_2_0_grammar // DCM_2_0_grammar import "github.com/antlr/antlr4/runtime/Go/antlr" // BaseDCM_2_0_grammarListener is a complete listener for a parse tree produced by DCM_2_0_grammarParser. type BaseDCM_2_0_grammarListener struct{} var _...
// Copyright 2016 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
package main import ( "bufio" "errors" "flag" "fmt" "github.com/kr/pretty" "math" "os" "sort" "strings" ) var ( partB = flag.Bool("partB", false, "Perform part B solution?") inputFile = flag.String("input", "inputs/day07.txt", "Input") debug = flag.Bool("debug", false, "Debug?") freeAtO...
// Copyright (c) 2018 ContentBox Authors. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. package txlogic import ( "encoding/binary" "errors" "fmt" "math" "github.com/BOXFoundation/boxd/core" corepb "github.com/BOXFoundation/boxd/core/pb" "github.com/BOX...
package provisioner import ( "context" "crypto/x509" "encoding/json" stderrors "errors" "net/url" "strings" "github.com/pkg/errors" "github.com/smallstep/certificates/db" "github.com/smallstep/certificates/errs" "golang.org/x/crypto/ssh" ) // Interface is the interface that all provisioner types must imple...
package cmd import ( "bufio" "bytes" "encoding/json" "fmt" "io" "io/ioutil" "os" "os/exec" "path/filepath" "strings" ) func check(e error) { if e != nil { panic(e) } } func validGithubConfig(opts *GithubConfig) bool { return opts.Token != "" && opts.SourceRepo != "" && opts.AuthorName != "" && opts.Au...
/* * GoScans, a collection of network scan modules for infrastructure discovery and information gathering. * * Copyright (c) Siemens AG, 2016-2021. * * This work is licensed under the terms of the MIT license. For a copy, see the LICENSE file in the top-level * directory or visit <https://opensource.org/licenses/MIT>. ...
package artetv import ( "context" "encoding/json" "fmt" "io" "log" "net/url" "regexp" "sort" "strconv" "strings" "sync" "time" "github.com/simulot/aspiratv/metadata/nfo" "github.com/simulot/aspiratv/providers" "github.com/simulot/aspiratv/net/myhttp/httptest" "github.com/gocolly/colly" "github.com...
// Copyright (c) Dolittle. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.18.1 // source: Runtime/Resources/Resources.proto package r...
package cmd import ( "context" "fmt" "html" "math/rand" "os" "path/filepath" "time" "github.com/cockroachdb/errors" "github.com/knz/shakespeare/pkg/crdb/log" "github.com/knz/shakespeare/pkg/crdb/stop" "github.com/knz/shakespeare/pkg/crdb/timeutil" ) // The workspace for the data collector type collector s...
// page1 is an experimental page for trying out a gesture recognition system. package main import ( "log" "math" "math/rand" "runtime" "time" "github.com/go-gl/gl/v2.1/gl" "github.com/go-gl/mathgl/mgl64" "github.com/goxjs/glfw" ) // TODO: Remove these var globalWindow *glfw.Window var mousePointer *Pointer ...
// Package oplog tails a MongoDB oplog, process each message, and generates // the message that should be sent to Redis. It writes these to an output // channel that should be read by package redispub and sent to the Redis server. package oplog import ( "context" "errors" "strings" "time" "github.com/vlasky/oplo...
package main import ( "bytes" "encoding/json" "flag" "fmt" "io/ioutil" "log" "os" "regexp" "sort" "strconv" "strings" "github.com/MichaelTJones/walk" "github.com/PuerkitoBio/goquery" ) // Pokemon 구조체는 포켓몬 정보를 구성합니다. type Pokemon struct { Name string `json:"name"` // 이름 Number int `jso...
package common import ( "archive/zip" "bytes" "fmt" "github.com/sirupsen/logrus" "io/ioutil" "os" "path" "strconv" "strings" ) // 定义优先级 type Priority int32 const ( Priority_First Priority = iota // 第一优先级(最高优先级) Priority_Second // 第二优先级 Priority_Third // 第三优先级 Priority_F...
/* Copyright 2019 Cisco Systems Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software d...
/* Copyright 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.14.0 // source: remote_hardware.proto package gomeshproto import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" ...
package main import ( "bytes" "context" "crypto/tls" "encoding/json" "flag" "fmt" "io/ioutil" "log" "net" "net/http" "net/url" "os" "path/filepath" "runtime/debug" "runtime/pprof" "strings" "time" "golang.org/x/net/http2" "github.com/hashicorp/go-hclog" "github.com/prometheus/client_golang/promet...
package timeglob import ( "gopkg.in/check.v1" "time" ) func validateNext(c *check.C, tg *TimeGlob, now, expected time.Time) { c.Check(tg.Next(now), check.Equals, expected) } func validateNextSequence(c *check.C, tg *TimeGlob, start time.Time, expected []time.Time) { for _, exp := range expected { start = tg.Ne...
// Copyright 2015-present, Cyrill @ <EMAIL> and the CoreStore contributors // // 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 // // Unles...
/* * Copyright (c) 2019 <NAME>. * All rights reserved. * https://tomaraei.com */ package main import ( "bufio" "fmt" "math/rand" "os" "os/exec" "regexp" "strings" "time" ) const hangman = ` _ _ _ _ _ ____ __ __ _ _ _ | | | | / \ | \ ...
//This package is copied from Go library text/template. //The original private functions eq, ge, gt, le, lt, and ne //are exported as public functions. package forked_template import ( "bytes" "errors" "fmt" "io" "net/url" "reflect" "strings" "unicode" "unicode/utf8" ) var Equal = eq var GreaterEqual = ge va...
package keeper import ( "fmt" "math" "sort" "strconv" "github.com/cosmos/cosmos-sdk/store/prefix" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/althea-net/cosmos-gravity-bridge/module/x/gravity/types" ) ///////////////////////////// // VALSET REQUESTS // ///////////////////////////// // SetVa...
package miner import ( "bytes" "context" "crypto/rand" "encoding/binary" "fmt" "sync" "time" proof2 "github.com/filecoin-project/specs-actors/v2/actors/runtime/proof" "github.com/filecoin-project/lotus/chain/gen/slashfilter" "github.com/filecoin-project/go-address" "github.com/filecoin-project/go-state-t...
package initutil import ( "context" "flag" "fmt" "net" "strings" "sync" "text/tabwriter" "time" "github.com/grpc-ecosystem/grpc-gateway/runtime" datastore "github.com/ipfs/go-datastore" "github.com/ipfs/go-ipfs/core" pubsub "github.com/libp2p/go-libp2p-pubsub" "github.com/oklog/run" "github.com/promethe...
// Copyright 2015 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...
// Code generated by protoc-gen-go. // source: lepuscoin.proto // DO NOT EDIT! /* Package protos is a generated protocol buffer package. It is generated from these files: lepuscoin.proto It has these top-level messages: Account TX ExecResult QueryAddrResults LepuscoinInfo */ package protos import proto "githu...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/resources/ad_group_feed.proto package resources import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" common "google.golang.org/genproto/googleapis/ads/goog...
package main // This command line utility builds on top of the p4d log analyzer // and outputs Prometheus metrics in a single file to be picked up by // node_exporter's textfile.collector module. import ( "bytes" "context" "fmt" "io" "io/ioutil" "os" "os/signal" "reflect" "strings" "syscall" "time" p4dlo...
package module import ( "bufio" "bytes" "encoding/json" "fmt" "io/ioutil" "log" "os" "path/filepath" "strings" "sync" getter "github.com/hashicorp/go-getter" "github.com/hashicorp/terraform/config" ) // RootName is the name of the root tree. const RootName = "root" // Tree represents the module import t...
/* Copyright 2016 The Rook 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 agreed to ...
package agent import ( "fmt" "math/rand" "reflect" "sync" "time" "github.com/docker/swarmkit/agent/exec" "github.com/docker/swarmkit/api" "github.com/docker/swarmkit/log" "golang.org/x/net/context" ) const ( initialSessionFailureBackoff = 100 * time.Millisecond maxSessionFailureBackoff = 8 * time.Seco...
package main import ( "bufio" "context" "flag" "fmt" "log" "os" "strings" "time" "github.com/ipfs/go-cid" "github.com/ipfs/go-ipfs-addr" "github.com/libp2p/go-libp2p" "github.com/libp2p/go-libp2p-host" "github.com/libp2p/go-libp2p-kad-dht" "github.com/libp2p/go-libp2p-net" "github.com/libp2p/go-libp2p-...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: github.com/cloudprober/cloudprober/validators/proto/config.proto package proto import ( proto "github.com/cloudprober/cloudprober/validators/http/proto" proto1 "github.com/cloudprober/cloudpr...
// Package wordpress provides a Go client library for the WordPress REST API. package wordpress import ( "bytes" "context" "encoding/json" "errors" "fmt" "io" "io/ioutil" "mime/multipart" "net/http" "net/url" "reflect" "strconv" "strings" "time" "github.com/google/go-querystring/query" ) const ( user...
// // Copyright (c) 2020 <NAME> <<EMAIL>> // package phz import ( "fmt" "image" "io/ioutil" "sort" "time" "encoding/binary" "github.com/go-restruct/restruct" "github.com/spf13/pflag" "github.com/ezrec/uv3dp" ) const ( defaultHeaderMagic = uint32(0x9fda83ae) defaultBottomLiftHeight = 5.0 defaultBottom...
package reactable import ( "strconv" "github.com/genshinsim/gcsim/pkg/core" ) type Reactable struct { Durability []core.Durability DecayRate []core.Durability // Source []int //source frame of the aura self core.Target core *core.Core //ec specific ecSnapshot core.AttackInfo //index of owner of next ec...
/* Copyright 2017 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...
// Copyright 2012 tsuru 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 provision provides interfaces that need to be satisfied in order to // implement a new provisioner on tsuru. package provision import ( "context" "...
/* Copyright © 2021 windvalley Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublic...
package tests import ( "errors" "fmt" "net/http" "net/url" "os" "strconv" "strings" "testing" "time" "github.com/kafkaesque-io/pulsar-beam/src/broker" "github.com/kafkaesque-io/pulsar-beam/src/model" "github.com/kafkaesque-io/pulsar-beam/src/route" "github.com/kafkaesque-io/pulsar-beam/src/util" . "gith...
package sqls import ( "database/sql" "encoding/json" "fmt" "time" "github.com/apm-ai/datav/backend/internal/teams" "github.com/apm-ai/datav/backend/pkg/db" "github.com/apm-ai/datav/backend/pkg/log" "github.com/apm-ai/datav/backend/pkg/models" "github.com/apm-ai/datav/backend/pkg/utils" ) var adminSalt, admi...
// Copyright 2018-2021 CERN // // 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 wr...
// Copyright (c) 2021 PaddlePaddle 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...
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package describe import ( "bytes" "encoding/json" "errors" "fmt" "io" "sort" "strconv" "strings" "text/tabwriter" "github.com/aws/aws-sdk-go/aws/arn" "github.com/aws/aws-sdk-go/aws/awserr" cfnstac...
/* Copyright 2021 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 configload import ( "fmt" "io" "os" "path/filepath" "sort" "time" version "github.com/hashicorp/go-version" "github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/terraform/configs" "github.com/hashicorp/terraform/internal/modsdir" "github.com/spf13/afero" ) // LoadConfigWithSnapshot is a variant o...
// Copyright © 2019 The Things Network Foundation, The Things Industries B.V. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Un...
package set import ( "fmt" "io" "os" "strconv" "strings" "text/tabwriter" "github.com/golang/glog" "github.com/spf13/cobra" "k8s.io/apimachinery/pkg/api/meta" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/types" "k8s.io/apimachinery/pkg/util/sets" k...
package dock // ImageDeleteResponseItem ... type ImageDeleteResponseItem struct { Untagged string `json:"Untagged,omitempty"` Deleted string `json:"Deleted,omitempty"` } // ImageDeleteUnusedResponse ... type ImageDeleteUnusedResponse struct { ImagesDeleted []ImageDeleteResponseItem `json:"ImagesDeleted,omitempty...
package irc import ( "bufio" "bytes" "context" "crypto/tls" "errors" "fmt" "net" "strings" "time" "github.com/goshuirc/irc-go/ircmsg" "github.com/goshuirc/irc-go/ircutils" "awesome-dragon.science/go/goGoGameBot/internal/config/tomlconf" "awesome-dragon.science/go/goGoGameBot/internal/interfaces" "aweso...
// Copyright 2020 gorse Project Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed ...
package loadbalancer // FINCLOUD_APACHE_NO_VERSION import ( "github.com/Azure/go-autorest/autorest" ) // The package's fully qualified name. const fqdn = "github.com/samjegal/fincloud-sdk-for-go/services/loadbalancer" // AlgorithmTypeCode enumerates the values for algorithm type code. type AlgorithmTypeCode string...
// Copyright 2018 The Cockroach Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
package text import ( "bytes" "errors" "fmt" "github.com/tetratelabs/wazero/wasm" ) func newTypeUseParser(module *wasm.Module, typeNamespace *indexNamespace) *typeUseParser { return &typeUseParser{module: module, typeNamespace: typeNamespace} } type onTypeUsePosition byte const ( // onTypeUseUnhandledToken i...
// MIT License // // Copyright (c) [2017-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, mod...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/api/monitored_resource.proto package monitoredres import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" _struct "github.com/golang/protobuf/ptypes/struct" api "google.golang.org/genproto/googleapis/api" label "google.golang.or...
// Copyright (c) 2018-2020 Splunk 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 appl...
package temp import ( "fmt" "github.com/fogleman/gg" "github.com/iamGreedy/gumi/drawer" "github.com/iamGreedy/gumi/gumre" "image" "math" ) // MTDropbox Default Values const ( mtDropboxMinWidth = 80 mtDropboxMinHeight = 20 mtDropboxScroolWidth = 8 mtDropboxElemMargin ...
package server import ( "context" "fmt" "sync" "sync/atomic" "time" "github.com/pkg/errors" "github.com/kopia/kopia/fs/localfs" "github.com/kopia/kopia/internal/clock" "github.com/kopia/kopia/internal/ctxutil" "github.com/kopia/kopia/internal/serverapi" "github.com/kopia/kopia/internal/uitask" "github.co...
package main import ( "fmt" "math" "os" "sort" "strconv" "strings" "sync" "time" lib "devstats" "github.com/google/go-github/github" ) // // Some debugging options (environment variables) // You can set: // REPO=full_repo_name // FROM=datetime 'YYYY-MM-DD hh:mm:ss.uuuuuu" // TO=datetime 'YYYY-MM-DD hh:mm:...
package main import ( "bufio" "bytes" "compress/gzip" "encoding/json" "fmt" "github.com/adrg/xdg" "github.com/jessevdk/go-flags" log "github.com/sirupsen/logrus" "github.com/spf13/viper" "github.com/tidwall/gjson" "io/ioutil" "os" "path/filepath" "strings" "sync" "text/tabwriter" "time" ) /* Adds "i...
// Copyright 2016 The Gosl 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 ode import ( "math" "testing" "github.com/cpmech/gosl/chk" "github.com/cpmech/gosl/fun" "github.com/cpmech/gosl/io" "github.com/cpmech/gosl/la...
/* * Copyright 2019 New Relic Corporation. All rights reserved. * SPDX-License-Identifier: Apache-2.0 */ package processor import ( "fmt" "sort" "strconv" "strings" "github.com/jeremywohl/flatten" "github.com/newrelic/nri-flex/internal/load" ) const _originalAPINo = "_originalAPINo" // FlattenData flatten ...
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build darwin // +build !ios package app // Simple on-screen app debugging for OS X. Not an officially supported // development target for apps, as screens...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/service/load_stats/v3/lrs.proto package envoy_service_load_stats_v3 import ( context "context" fmt "fmt" _ "github.com/cncf/udpa/go/udpa/annotations" v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3" v31 "github.com/envoyproxy/go-co...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.22.0 // protoc v3.11.2 // source: db.proto package dbpb import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl...
package truetype import ( "math" "github.com/benoitkugler/textlayout/fonts" ) var _ fonts.FaceMetrics = (*Font)(nil) // Returns true if the font has Graphite capabilities, // but does not check if the tables are actually valid. func (font *Font) IsGraphite() (*Font, bool) { return font, font.Graphite != nil } f...
/* 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 agreed to in writing, ...
// Copyright (c) 2020-2021 VMware, Inc. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package builder import ( "bytes" "context" "crypto/tls" "fmt" "io/ioutil" "net" "os" "path" "path/filepath" "strconv" "sync" "testing" "time" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "git...
package server import ( "errors" "github.com/cnlh/nps/bridge" "github.com/cnlh/nps/lib/common" "github.com/cnlh/nps/lib/file" "github.com/cnlh/nps/server/proxy" "github.com/cnlh/nps/server/tool" "github.com/cnlh/nps/vender/github.com/astaxie/beego" "github.com/cnlh/nps/vender/github.com/astaxie/beego/logs" "g...
package bind // #cgo linux CFLAGS: -I/usr/local/lib // #cgo linux LDFLAGS: /usr/local/lib/libstp.so // #include <stp/c_interface.h> // #include <stdio.h> // #include <stdlib.h> /* void errorHandlerC(const char* err_msg) { printf("Error: %s\n", err_msg); exit(1); } typedef void (*closure)(); typedef void * VC; ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: spire/server/hostservices/identityprovider.proto package hostservices import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" common "github.com/spiffe/spire/proto/spire/common" grpc "google.golang.org/grpc" codes "google.golang.o...
// Package statsd serve a UDP/TCP(not used) server to handle statsd metrics. package statsd import ( "bytes" "fmt" "net" "strings" "sync" "time" "github.com/influxdata/telegraf/plugins/parsers/graphite" "gitlab.jiagouyun.com/cloudcare-tools/cliutils" "gitlab.jiagouyun.com/cloudcare-tools/cliutils/logger" "g...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: peers.proto package gubernator 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" ) // Reference imports ...
// +build js package main import ( "github.com/go-gl/mathgl/mgl32" "github.com/gopherjs/gopherjs/js" "github.com/gopherjs/webgl" ) var gl *webgl.Context var keys = make(map[int]bool) // not synchronized because JavaScript doesn't have threads and synchronization would require spawning goroutines on each key press...