text
stringlengths
3.08k
10.4k
package diameter import ( "fmt" "testing" ) func dumpBytes(b []byte) { fmt.Printf("PRINTF data [%x]\n", b) } func simpleTest(t *testing.T, encoded []byte, testname string, length int, code uint32, vendorID uint32, mandatory bool, protected bool, data []byte) { avp, err := DecodeAVP(encoded) if err != nil { t...
// +build integration performance tcp package tcp import ( "context" "os" "strconv" "strings" "testing" "time" "github.com/skupperproject/skupper/api/types" "github.com/skupperproject/skupper/test/utils" "github.com/skupperproject/skupper/test/utils/base" "github.com/skupperproject/skupper/test/utils/const...
package amazon import ( "encoding/xml" "fmt" "time" ) // Items represents items type Items struct { Request Request TotalResults int TotalPages int MoreSearchResultsURL string `xml:"MoreSearchResultsUrl"` Item []Item } // Item represents item type Item struct { ...
// 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 ...
// Copyright GoFrame Author(https://goframe.org). All Rights Reserved. // // This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT was not distributed with this file, // You can obtain one at https://github.com/gogf/gf. package gdb import ( "fmt" "github.com/gogf/gf/v2/text/gstr...
package storer import ( "errors" "flag" "fmt" "io" "io/ioutil" "os" "path/filepath" "github.com/mboye/kopi/input" "github.com/mboye/kopi/model" "github.com/mboye/kopi/outputhandler" "github.com/mboye/kopi/security" "github.com/mboye/kopi/stage" log "github.com/sirupsen/logrus" ) type storer struct { ou...
package bot import ( "fmt" "log" "sync" ) // Cmd holds the parsed user's input for easier handling of commands type Cmd struct { Raw string // Raw is full string passed to the command Channel string // Channel where the command was called User *User // User who sent the message Message string /...
package iprange_test import ( "doppler/iprange" "fmt" "net/url" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("IPRange", func() { Describe("ValidateIpAddresses", func() { It("recognizes a valid IP address range", func() { ranges := []iprange.IPRange{iprange.IPRange{Start: "127.0...
// +build windows package main import ( "fmt" "net/http" "strconv" //"path/filepath" "os" "os/exec" "golang.org/x/sys/windows/svc" "github.com/prometheus/common/log" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" ...
/* Copyright 2019 The Jetstack cert-manager 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 Unless required by applicable law or agreed...
package fast import ( "errors" "io" "strconv" "sync" "time" "net" "net/http" "github.com/ddo/pick-json" "github.com/ddo/rq" "github.com/ddo/rq/client" "gopkg.in/ddo/go-dlog.v2" ) const ( endpoint = "https://fast.com" bufferSize = 512 measureTimeoutMax = 30 measureTimeoutMin = 10 userAgent = "githu...
// Copyright 2022 YuWenYu All rights reserved. // Use of this source code is governed by a MIT style // license that can be found in the LICENSE file. package adapter import ( "fmt" "github.com/spf13/cast" "github.com/yuw-pot/pot/data" E "github.com/yuw-pot/pot/modules/err" "github.com/yuw-pot/pot/modules/prope...
// Copyright 2015 syzkaller project authors. All rights reserved. // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. package main import ( "encoding/json" "flag" "fmt" "io/ioutil" "log" "os" "runtime" "github.com/google/syzkaller/pkg/csource" "github.com/google...
// 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. // +build !js package net import ( "fmt" "io" "strings" "testing" "github.com/SandwichDev/go-internals/testenv" ) func TestResolveGoogle(t *testing.T) ...
// Copyright 2021 Board of Trustees of the University of Illinois. // // 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 requir...
package lrucache import ( "fmt" "sync" "time" ) // LRUCache stores a bounded number of key value pairs. If the cache exceeds its // maximum capacity, the least recently used entry is evicted. type LRUCache interface { // Put adds a new key value pair to the cache. If the key is already in the // cache, the previ...
// Copyright (c) 2021 BitMaelum Authors // // 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, publ...
// 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 ...
package main import ( "context" "fmt" "io" "math" "net/http" "net/http/httptest" "net/url" "os" "time" "github.com/heptiolabs/healthcheck" "github.com/ryanmt/cluster-resource-autoscaler/check" "github.com/ryanmt/cluster-resource-autoscaler/health" "github.com/ryanmt/cluster-resource-autoscaler/kubeapi" ...
package vnet import ( "net" "strings" "testing" "github.com/carrotsong/logging" "github.com/stretchr/testify/assert" ) func TestTCPFragString(t *testing.T) { f := tcpFIN assert.Equal(t, "FIN", f.String(), "should match") f = tcpSYN assert.Equal(t, "SYN", f.String(), "should match") f = tcpRST assert.Equal...
/* package green specifies the Greenpack serialization format. Instead of an IDL file, the Greenpack schema is described using the same Go source file that holds the Go structs you wish to serialize. The Go file schema is then compiled by running `truepack` into msgpack2 (with optional JSON) in a format we'll call `com...
// Copyright 2019 Istio Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
package core import ( "encoding/json" "fmt" "io/ioutil" "log" "net/http" "net/url" "time" "github.com/nlopes/slack" "github.com/tidwall/gjson" ) type interactionHandler struct { slackClient *slack.Client verificationToken string } const ( actionSelect = "select" actionCancel = "cancel" ) func (h...
// Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Lice...
package main import ( "archive/zip" "bufio" "flag" "fmt" "io" "log" "os" "path/filepath" "strings" ) func main() { ignoreHelp := "relative or absolute path to a .zipignore file\nIf not provided, zipproject will look in the root directory of the project being zipped" ignoreFilePtr := flag.String("file", "./...
/* Copyright 2019 Adevinta */ package main import ( "context" "encoding/json" "io/ioutil" "net/http" "strings" gonmap "github.com/lair-framework/go-nmap" check "github.com/adevinta/vulcan-check-sdk" "github.com/adevinta/vulcan-check-sdk/helpers/nmap" "github.com/adevinta/vulcan-check-sdk/state" report "gi...
package gelfudp import ( "bytes" "compress/gzip" "compress/zlib" "encoding/binary" "errors" "fmt" "github.com/khorevaa/logos/internal/common" "go.uber.org/zap/zapcore" "io" "io/ioutil" "net" ) type Config struct { Host string `logos-config:"host"` Port int `logos-config:"port"`...
package events import ( "github.com/gin-contrib/cors" "github.com/gin-gonic/gin" "net/http" ) var db = make(map[string]string) func setupRouter() *gin.Engine { // Disable Console Color // gin.DisableConsoleColor() r := gin.Default() //CORS - specific parameters /* r.Use(cors.New(cors.Config{ AllowOrigins:...
package runtimestats import ( "context" "fmt" "runtime" "sync" "time" "github.com/keybase/client/go/chat/globals" "github.com/keybase/client/go/chat/utils" "github.com/keybase/client/go/libkb" "github.com/keybase/client/go/protocol/keybase1" "github.com/keybase/go-framed-msgpack-rpc/rpc" "golang.org/x/sync...
package kv import ( "bytes" "context" "errors" "fmt" ) var ( ErrNotFound = errors.New("kv: not found") ErrNoBucket = errors.New("kv: bucket is missing") ErrBucketExists = errors.New("kv: bucket already exists") ) type Tx interface { Commit(ctx context.Context) error Rollback() error } type Bucket i...
package loader import ( "io/ioutil" "os" "path/filepath" homedir "github.com/mitchellh/go-homedir" "github.com/pkg/errors" yaml "gopkg.in/yaml.v2" "github.com/devspace-cloud/devspace/pkg/util/log" "github.com/devspace-cloud/devspace/pkg/devspace/config/constants" "github.com/devspace-cloud/devspace/pkg/dev...
package sms import ( "bytes" "crypto/hmac" "crypto/sha256" "encoding/hex" "encoding/json" "fmt" "io/ioutil" "net/http" "regexp" "strconv" "strings" "time" "github.com/pkg/errors" "github.com/lucky-byte/reactgo/serve/db" "github.com/lucky-byte/reactgo/serve/xlog" ) const ( host = "sms.tencentclo...
// Copyright (c) Facebook, Inc. and its affiliates. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicabl...
package tea import ( "net/http" "strconv" "time" ) // Success struct Success type Success struct { Meta Meta Tweets []Tweet Types Types } // Tweet struct Tweet type Tweet struct { ID string Valid bool Value int64 Types Types } // Types struct Types type Types struct { Impression Type Engage...
// Copyright (c) 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 appli...
// // Copyright 2018-present Sonatype 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 ...
/* © 2021–present <NAME> <<EMAIL>> (https://haraldrudell.github.io/haraldrudell/) ISC License */ package pnet import ( "net" "sync" "github.com/haraldrudell/parl" "github.com/haraldrudell/parl/perrors" ) type UDP struct { Network string F UDPFunc MaxSize int net.UDPAddr // stru...
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package elasticsearchservice import ( "context" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/internal/awsutil" "github.com/aws/aws-sdk-go-v2/private/protocol" ) // Container for request parameters to CreatePackage operation...
package venom // Default the default set of available config levels const ( DefaultLevel ConfigLevel = iota FileLevel EnvironmentLevel FlagLevel OverrideLevel ConfigLevel = 99 ) const defaultDelim = "." // Delim is the delimiter used for separating nested key spaces. The default is // to separate on "." charact...
package bustool import ( "encoding/binary" "encoding/hex" "hash/crc32" "io" "math/rand" "github.com/mastercactapus/embedded/driver/mem" "github.com/mastercactapus/embedded/serial/i2c" "github.com/mastercactapus/embedded/term" ) type memDevice interface { io.ReadWriteSeeker io.ReaderAt io.WriterAt } func ...
// Package zsh provides methods for generating zsh completion package zsh // ////////////////////////////////////////////////////////////////////////////////// // // // // Copyright (c) 2021 ESSENTIAL KAOS ...
//go:build (android || ios) && !mobilebind // +build android ios // +build !mobilebind package engo import ( "io" "os" "os/signal" "strings" "syscall" "time" "github.com/EngoEngine/gl" "golang.org/x/mobile/app" "golang.org/x/mobile/asset" "golang.org/x/mobile/event/lifecycle" "golang.org/x/mobile/event/pa...
package splunkmetric import ( "encoding/json" "log" "github.com/influxdata/telegraf" ) type serializer struct { HecRouting bool SplunkmetricMultiMetric bool } type CommonTags struct { Time float64 Host string Index string Source string Fields map[string]interface{} } type HECTimeSeries ...
/* Copyright 2019 The Crossplane 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 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 main import ( "github.com/hyperledger/fabric/core/chaincode/shim" pb "github.com/hyperledger/fabric/protos/peer" "encoding/json" "fmt" "time" "strconv" ) type artifactManager struct { } type artifact struct { Owner string ID string Quantity string TimeStamp string } var logger = shim.N...
// Copyright (c) 2015-2021 MinIO, Inc. // // This file is part of MinIO Object Storage stack // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (...
// Package cmd contains bot commands' handlers. package cmd import ( "fmt" "strings" "sync" botgolang "github.com/mail-ru-im/bot-golang" "github.com/z0rr0/mtbot/db" ) const ( // internalError is common intrnal error message internalError = "internal error" ) var ( // knownHandlers is a map of known handlin...
package router import ( res "hfrd/api/resource" "hfrd/api/resource/auth" "hfrd/api/resource/filter" "hfrd/api/utils" "hfrd/api/utils/hfrdlogging" "strings" "time" "github.com/gin-contrib/cors" "github.com/gin-gonic/gin" ) var routerLogger = hfrdlogging.MustGetLogger(hfrdlogging.MODULE_ROUTER) func Router(l...
package dbkit import ( "bytes" "io/ioutil" "os" "path" "sort" "text/template" ) //go:generate go-bindata -o templates.go -pkg dbkit template.db.tmpl template.loader.tmpl template.postgres.tmpl template.postgres.db.tmpl template.tableShared.tmpl template.cassandra.tmpl template.cassandra.db.tmpl // Generate gen...
/* * Copyright 2019, EnMasse authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ package install import ( "context" "fmt" "reflect" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg...
package spotify import ( "errors" "time" "github.com/sarifsystems/sarif/pkg/schema" "github.com/sarifsystems/sarif/sarif" "github.com/sarifsystems/sarif/services" "github.com/zmb3/spotify" "golang.org/x/oauth2" ) const state = "sarif123" var Module = &services.Module{ Name: "spotify", Version: "...
package module import ( "encoding/json" "fmt" "github.com/ci123chain/ci123chain/pkg/abci/codec" codectypes "github.com/ci123chain/ci123chain/pkg/abci/codec/types" "github.com/ci123chain/ci123chain/pkg/abci/types" client "github.com/ci123chain/ci123chain/pkg/client/context" "github.com/ci123chain/ci123chain/pkg/...
package wl import ( "io/ioutil" "net" "os" "path/filepath" "sync" "syscall" "github.com/elliotmr/gdl/wl/wlp" "github.com/pkg/errors" "fmt" ) type Client struct { ctx *wlp.Context compositor *wlp.Compositor shm *wlp.Shm shell *wlp.ZxdgShellV6 Screens []*Screen Windows []*Windo...
package bilibili type SeasonResult struct { Code int `json:"code"` Message string `json:"message"` Result Result `json:"result"` } type Areas struct { ID int `json:"id"` Name string `json:"name"` } type Episodes struct { Aid int `json:"aid"` Attr int `json:"attr"` Bvid ...
// Copyright 2021 <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, so...
/* Copyright IBM Corp. 2016 All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ag...
/* Copyright 2019 The Knative 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...
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package quicksight import ( "context" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/internal/awsutil" "github.com/aws/aws-sdk-go-v2/private/protocol" ) // The request object for this operation. type CreateGroupInput struct {...
package types_test import ( "fmt" "testing" "github.com/stretchr/testify/suite" abci "github.com/tendermint/tendermint/abci/types" dbm "github.com/tendermint/tm-db" "github.com/cosmos/cosmos-sdk/store/iavl" "github.com/cosmos/cosmos-sdk/store/rootmulti" storetypes "github.com/cosmos/cosmos-sdk/store/types" ...
// Copyright 2019-2020 go-tcap authors. All rights reserved. // Use of this source code is governed by a MIT-style license that can be // found in the LICENSE file. package tcap import ( "fmt" "io" "github.com/pkg/errors" ) // Dialogue OID: Dialogue-As-ID and Unidialogue-As-Id. const ( DialogueAsID uint8 = iota...
// 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 wri...
/* Copyright © 2021 <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, software distri...
/** * Copyright 2015 @ S1N1 Team. * name : user_c * author : jarryliu * date : -- : * description : * history : */ package ols import ( "errors" "fmt" "github.com/atnet/gof" "github.com/atnet/gof/web" "go2o/src/core/domain/interface/member" "go2o/src/core/infrastructure/domain" "go2o/src/core/service/dps...
package main import ( "context" "fmt" "os" "path/filepath" "strings" "time" "k8s.io/api/apps/v1beta1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/util/wait" "k8s.io/apimachinery/pkg/watch" "k8s.io/client-go/kubernetes" "k8s.io/client-go/rest" ...
/* Copyright 2020 The Crossplane 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 autotx import ( "context" "database/sql" "fmt" "math" "time" ) // DefaultMaxRetries configures the default number of max retries attempted by TransactWithRetry. var DefaultMaxRetries = 5 // DefaultIsRetryable configures the default function for determining whether the error returned from the operation i...
package forward import ( "context" "fmt" "github.com/pkg/errors" "github.com/spf13/cobra" "github.com/fatih/color" "github.com/mutagen-io/mutagen/cmd" "github.com/mutagen-io/mutagen/cmd/mutagen/daemon" "github.com/mutagen-io/mutagen/pkg/forwarding" "github.com/mutagen-io/mutagen/pkg/grpcutil" selectionpk...
// Copyright © 2020 Banzai Cloud // // 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 ...
/* 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 ...
package executor import ( "time" "github.com/influxdata/influxdb/v2" "github.com/prometheus/client_golang/prometheus" ) type ExecutorMetrics struct { totalRunsComplete *prometheus.CounterVec activeRuns prometheus.Collector queueDelta *prometheus.SummaryVec runDuration *promethe...
package check_json_path import ( "bytes" "errors" "fmt" "time" "github.com/Knetic/govaluate" "github.com/appscode/go/flags" "github.com/appscode/go/net/httpclient" "github.com/appscode/searchlight/pkg/icinga" "github.com/appscode/searchlight/plugins" "github.com/spf13/cobra" "gomodules.xyz/envconfig" meta...
package appkit // #include "box.h" import "C" import ( "unsafe" "github.com/hsiafan/cocoa/coregraphics" "github.com/hsiafan/cocoa/foundation" "github.com/hsiafan/cocoa/objc" ) type Box interface { View SetFrameFromContentFrame(contentFrame foundation.Rect) SizeToFit() BorderRect() foundation.Rect BoxType() ...
package e2e import ( "errors" "fmt" "os" "testing" "time" "github.com/kyverno/kyverno/test/e2e" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var ( // Namespace GVR nsGVR = e2e.GetGVR("", "v1", "namespaces") // Chaos service account GVR saGV...
package repositories import ( "context" "errors" "fmt" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "code.cloudfoundry.org/cf-k8s-controllers/api/authorization" workloadsv1alpha1 "code.cloudfoundry.org/cf-k8s-controllers/controllers/apis/workloads/v1alpha1" k8serrors "k8s.io/apimachinery/pkg/api/errors" "s...
package statefulset import ( "encoding/json" "fmt" "k8s.io/api/apps/v1beta1" "github.com/aaawoyucheng/wayne/src/backend/controllers/base" "github.com/aaawoyucheng/wayne/src/backend/models" "github.com/aaawoyucheng/wayne/src/backend/util/hack" "github.com/aaawoyucheng/wayne/src/backend/util/logs" ) type State...
package node import ( "crypto/rand" "encoding/binary" "fmt" "testing" "time" . "github.com/elastos/Elastos.ELA/blockchain" "github.com/elastos/Elastos.ELA/config" "github.com/elastos/Elastos.ELA/core" "github.com/elastos/Elastos.ELA/log" "github.com/elastos/Elastos.ELA/protocol" "github.com/elastos/Elasto...
package main import ( "encoding/json" "flag" "fmt" "log" "net/http" "strings" "time" "github.com/rob05c/gms/gms" ) func main() { port := flag.Int("port", 80, "the port to serve on") maxHistory := flag.Int("maxHistory", 10, "the max mutate history to retain") mutateInterval := flag.Duration("mutateInterval...
/* Copyright 2020 O.Yuanying <<EMAIL>> 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...
package pcg import ( "math/bits" ) // 128 state type Pcg128 struct { mulHigh uint64 mulLow uint64 incHigh uint64 incLow uint64 stateHigh uint64 stateLow uint64 step func() output64 func() uint64 output128 func() (uint64, uint64) } const ( mulHigh128 uint64 = 0x2360ed051fc65da4 // 254929...
// The MIT License // // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. // // Copyright (c) 2020 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 Soft...
package notifiers import ( "bytes" "context" "encoding/json" "fmt" "io" "reflect" "regexp" "strings" "sync" cbpb "google.golang.org/genproto/googleapis/devtools/cloudbuild/v1" "k8s.io/client-go/third_party/forked/golang/template" "k8s.io/client-go/util/jsonpath" ) var ( subNamePattern = regexp.MustCompi...
// Copyright 2016 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 main import ( "flag" "fmt" "log" "os" "strings" "github.com/pkg/errors" "github.com/sdboyer/gps" ) const removeShortHelp = `Remove a dependenc...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: identity/query.proto package types import ( context "context" fmt "fmt" _ "github.com/cosmos/cosmos-sdk/types/query" grpc1 "github.com/gogo/protobuf/grpc" proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations...
// Copyright 2021 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 service import ( "github.com/pierrre/mangadownloader/utils" "code.google.com/p/go-html-transform/css/selector" "code.google.com/p/go.net/html" "fmt" "net/url" "regexp" "strconv" ) var ( mangafox = &MangaFoxService{} serviceMangaFoxHTMLSelectorMangaName, _ = selector.Selector("#series_info div....
package utils import ( "encoding/base64" "fmt" "io/ioutil" "math/rand" "os" "os/exec" "path/filepath" "strconv" "strings" "time" "net/url" "github.com/rancher/types/apis/project.cattle.io/v3" managementv3 "github.com/rancher/types/client/management/v3" "golang.org/x/net/context" ) const ( base ...
// Code generated by ogen, DO NOT EDIT. package api import ( "bytes" "context" "fmt" "io" "math" "net" "net/http" "net/url" "regexp" "sort" "strconv" "strings" "sync" "time" "github.com/go-faster/errors" "github.com/go-faster/jx" "github.com/google/uuid" "github.com/ogen-go/ogen/conv" ht "github.c...
package auth import ( "errors" "fmt" "math/rand" "net/http" "strings" "time" "unicode/utf8" "github.com/France-ioi/AlgoreaBackend/app/auth" "github.com/France-ioi/AlgoreaBackend/app/database" "github.com/France-ioi/AlgoreaBackend/app/domain" "github.com/France-ioi/AlgoreaBackend/app/service" ) // swagger:...
/* Copyright SecureKey Technologies Inc. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package resource import ( "encoding/json" "errors" "fmt" "io/ioutil" "net/http" "net/url" "strings" "time" "github.com/bluele/gcache" "github.com/trustbloc/edge-core/pkg/log" "github.com/trustbloc/orb/pk...
// Copyright (c) 2016-2019 Uber Technologies, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
package registry import ( "bufio" "crypto/tls" "encoding/binary" "github.com/golang/protobuf/proto" uuid "github.com/google/uuid" "github.com/hashicorp/yamux" "github.com/kfsoftware/getout/pkg/db" "github.com/kfsoftware/getout/pkg/messages" "github.com/pkg/errors" log "github.com/schollz/logger" "gorm.io/go...
package lib import ( "bytes" "crypto/md5" "encoding/binary" "encoding/hex" "flag" "fmt" "log" "math/rand" "net" "net/http" "net/url" "os" "strings" "time" ) var TimeLocation *time.Location var TimeFormat = "2006-01-02 15:04:05" var DateFormat = "2006-01-02" var LocalIP = net.ParseIP("127.0.0.1") //公共初始...
package main import ( "fmt" "strings" "time" ) /* Elements struct holding orbital parameters derived from TLE. */ type Elements struct { // Trimmed TLE lines Name, L1, L2 string Epoch int64 // Epoch in unix seconds DM, // Mass of dominant body DR, // Radius of dominant body ...
// Copyright 2017 The Cockroach Authors. // // Licensed as a CockroachDB Enterprise file under the Cockroach Community // License (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // https://github.com/cockroachdb/cockroach/blob/master/li...
package fdk import ( "context" "io" "io/ioutil" "net" "net/http" "net/http/httptest" "os" "path/filepath" "strings" "testing" "time" ) // XXX(reed): test cloudevents in http-stream land // echoHandler echos the body and all headers back func echoHandler(ctx context.Context, in io.Reader, out io.Writer) { ...
package runner import ( "context" "errors" "fmt" "io" "log" "path" "path/filepath" "strconv" "strings" "time" junit "github.com/joshdk/go-junit" "golang.org/x/net/html" "k8s.io/apimachinery/pkg/util/wait" restclient "k8s.io/client-go/rest" ) var ( resultsPortStr = strconv.Itoa(resultsPort) errNotRun...
package syslog import ( "errors" "math" "os" "strconv" "strings" "time" "github.com/influxdata/go-syslog/rfc5424" "github.com/influxdata/telegraf" ) type SyslogMapper struct { DefaultSdid string DefaultSeverityCode uint8 DefaultFacilityCode uint8 DefaultAppname string Sdids []...
// Copyright 2019-2021 The Liqo 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 2014 The Kythe 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 ap...