text
stringlengths
5.51k
28.1k
package models import ( "github.com/astaxie/beego/orm" _ "github.com/go-sql-driver/mysql" ) type NideshopAd struct { AdPositionId int `json:"ad_position_id"` Content string `json:"content"` Enabled int `json:"enabled"` EndTime int `json:"end_time"` Id int `json:"id"` Image...
// Copyright 2014 Team 254. All Rights Reserved. // Author: <EMAIL> (<NAME>) // // Functions for controlling the arena and match play. package main import ( "fmt" "log" "math/rand" "time" ) const ( arenaLoopPeriodMs = 10 dsPacketPeriodMs = 250 matchEndScoreDwellSec = 3 ) // Progression of match stat...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: common/configuration.proto package common // import "deepchain/protos/common" import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal v...
// Copyright 2017 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...
package web import ( ctx "context" "encoding/json" "encoding/xml" "fmt" "io" "mime/multipart" "net" "net/http" "net/url" "os" "path/filepath" "strings" "sync" "time" "github.com/cuigh/auxo/data" "github.com/cuigh/auxo/log" "github.com/cuigh/auxo/util/cast" ) // Requester holds all methods for readin...
package trending import ( "net/http" "net/url" "regexp" "strconv" "strings" "github.com/PuerkitoBio/goquery" ) // These are predefined constants to define the timerange of the requested repository or developer. // If trending repositories or developer are requested, a timeframe has to be added. // It is sugges...
// Copyright 2010 The Walk 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 winapi const ( LVSCW_AUTOSIZE = ^uintptr(0) LVSCW_AUTOSIZE_USEHEADER = ^uintptr(1) ) // ListView messages const ( LVM_FIRST ...
package bls12381 import ( "crypto" "crypto/subtle" "fmt" "math/big" "github.com/cloudflare/circl/ecc/bls12381/ff" "github.com/cloudflare/circl/group" ) // G1Size is the length in bytes of an element in G1 in uncompressed form.. const G1Size = 2 * ff.FpSize // G1SizeCompressed is the length in bytes of an elem...
// Copyright Istio Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
package tea import ( "errors" "fmt" "io" "unicode/utf8" ) // KeyMsg contains information about a keypress. KeyMsgs are always sent to // the program's update function. There are a couple general patterns you could // use to check for keypresses: // // // Switch on the string representation of the key (shorter...
package emulator import ( "fmt" "net" "sync" "gbc/pkg/apu" "gbc/pkg/cartridge" "gbc/pkg/config" "gbc/pkg/debug" "gbc/pkg/gpu" "gbc/pkg/joypad" "gbc/pkg/rtc" "gbc/pkg/serial" ) const ( HBlankMode = iota VBlankMode OAMRAMMode LCDMode ) // ROMBank - 0x4000-0x7fff type ROMBank struct { ptr uint8 bank ...
// Copyright 2016 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...
//go:build xotpl package createdb import ( "bytes" "context" "errors" "fmt" "io" "io/fs" "os" "os/exec" "regexp" "strings" "text/template" "unicode" xo "github.com/xo/xo/types" ) // Init registers the template. func Init(ctx context.Context, f func(xo.TemplateType)) error { fmtCmd, _ := exec.LookPath(...
package luks import ( "bytes" "crypto/aes" "crypto/cipher" "crypto/sha256" "crypto/sha512" "encoding/base64" "encoding/binary" "encoding/json" "fmt" "hash" "os" "strconv" "strings" "unsafe" "golang.org/x/crypto/argon2" "golang.org/x/crypto/pbkdf2" "golang.org/x/crypto/xts" ) // LUKS v2 format is spe...
// Copyright The Linux Foundation and each contributor to CommunityBridge. // SPDX-License-Identifier: MIT package events import ( "context" "errors" "fmt" "github.com/communitybridge/easycla/cla-backend-go/projects_cla_groups" project_service "github.com/communitybridge/easycla/cla-backend-go/v2/project-servi...
// Copyright 2018 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 fixture import ( "time" "github.com/weaveworks/scope/probe/docker" "github.com/weaveworks/scope/probe/endpoint" "github.com/weaveworks/scope/probe/host" "github.com/weaveworks/scope/probe/kubernetes" "github.com/weaveworks/scope/probe/process" "github.com/weaveworks/scope/render/detailed" "github.com/...
/* 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 cyberark provides primitives to interact with the openapi HTTP API. // // Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT. package cyberark const ( SessionTokenScopes = "SessionToken.Scopes" ) // Defines values for PlatformAccountPropertiesType. const ( PlatformAccountPropertiesTypeMorpheus...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.6.1 // source: solo-kit.proto package core import ( reflect "reflect" sync "sync" descriptor "github.com/golang/protobuf/protoc-gen-go/descriptor" protoreflect "google.golang.org/protobuf/reflect/protoref...
// Copyright © 2022 Kaleido, Inc. // // SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unle...
// Copyright (c) 2018 The Jaeger 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 goka import ( "context" "fmt" "strings" "sync" "time" "github.com/Shopify/sarama" "github.com/lovoo/goka/multierr" ) const ( // PPStateIdle marks the partition processor as idling (not started yet) PPStateIdle State = iota // PPStateRecovering indicates a recovering partition processor PPStateReco...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v0/enums/job_placeholder_field.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 supp...
// Package exec is a wrapper around the os/exec package that supports timeouts and testing. // // Example usage: // // Simple command with argument: // err := exec.Run(ctx, &exec.Command{ // Name: "touch", // Args: []string{file}, // }) // // More complicated example: // // output := bytes.Buffer{} // e...
// Copyright 2021 The gVisor 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.17.1 // source: transport.proto package transport import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sy...
// Package stateless implements a PinTracker component for IPFS Cluster, which // aims to reduce the memory footprint when handling really large cluster // states. package stateless import ( "context" "errors" "fmt" "sync" "time" "github.com/ipfs/ipfs-cluster/api" "github.com/ipfs/ipfs-cluster/pintracker/optra...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.23.0 // protoc v3.12.1 // source: artifact/http.proto package artifact import ( proto "github.com/golang/protobuf/proto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/ru...
package __latency_testing import ( "bytes" "fmt" "math" "os" "os/exec" "regexp" . "github.com/onsi/ginkgo" "github.com/onsi/ginkgo/extensions/table" . "github.com/onsi/gomega" testlog "github.com/openshift-kni/performance-addon-operators/functests/utils/log" ) const ( //tool to test oslat = "oslat"...
package ddlparser import ( "errors" "regexp" "strings" "text/scanner" "github.com/b13f/repligator/isql" ) // ddl cases const ( createTable = iota createDatabase createSchema truncate renameTable dropTable alterTable ) var have = []string{ "CREATE TABLE", "CREATE DATABASE", "CREATE SCHEMA", "TRUNCATE...
/* Copyright © 2020 <NAME><<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, softwa...
package integrationtests import ( "context" "encoding/json" "fmt" "io/ioutil" "net" "net/http" "os" "os/exec" "strconv" "sync/atomic" "testing" "time" "github.com/luqmanMohammed/eventsrunner-k8s-sensor/utils" appsv1 "k8s.io/api/apps/v1" v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" m...
package writer import ( "context" "crypto/tls" "fmt" "hash" "strconv" "strings" "sync" "time" "github.com/Shopify/sarama" "github.com/cenkalti/backoff/v4" batchInternal "github.com/benthosdev/benthos/v4/internal/batch" "github.com/benthosdev/benthos/v4/internal/batch/policy" "github.com/benthosdev/benth...
// Package network Copyright 2017 mitrakov. All right are reserved. Governed by the BSD license package network import "net" import "log" import "sync" import "time" import . "mitrakov.ru/home/winesaps/utils" // nolint // IProtocol is an interface for network protocols that may be implemented over UDP type IProtocol ...
// Code generated by go-swagger; DO NOT EDIT. package operations // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the generate command import ( "errors" "net/url" golangswaggerpaths "path" "github.com/go-openapi/swag" ) // GetApplicationResourcesURL genera...
package lumpy import ( "os" "testing" "github.com/biogo/hts/bam" . "gopkg.in/check.v1" ) func TestStartEndFix(t *testing.T) { in := "1 1116265 3510 N <DEL> 0 . SVTYPE=DEL;SVLEN=7;END=1116258" out := fixStartEnd(in) if out != "1 1116258 3510 N <DEL> 0 . SVTYPE=DEL;SVLEN=7;END=1116265" { t.Errorf("didn't swi...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: devmodel.proto package config import ( fmt "fmt" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compil...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v3/resources/asset.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/googleads/v3...
package main import ( "bufio" "encoding/json" "flag" "fmt" "log" "net" "net/http" "net/url" "os" "path" "strconv" "strings" "sync" "time" "github.com/avct/user-agent-surfer" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/common/version" ) var ( listenAddress = flag.Stri...
package core import ( "fmt" "gReKVdisDB/date_structure" "gReKVdisDB/date_structure/skiplist" "gReKVdisDB/utils" "os" "strconv" "strings" ) const RADIUS_COORDS = (1 << 0) const RADIUS_MEMBER = (1 << 1) const RADIUS_NOSTORE = (1 << 2) const SORT_NONE = 0 const SORT_ASC = 1 const SORT_DESC = 2 func AddCommand(...
// Copyright 2012, Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. /* Package tabletmanager exports the ActionAgent object. It keeps the local tablet state, starts / stops all associated services (query service, update stream, bin...
package sync3 import ( "bytes" "encoding/json" "strings" "github.com/matrix-org/sync-v3/internal" "github.com/matrix-org/sync-v3/sync3/extensions" ) var ( SortByName = "by_name" SortByRecency = "by_recency" SortByNotificationCount = "by_notification_count" SortByHighlightCount = "b...
/* * This file is subject to the terms and conditions defined in * file 'LICENSE.md', which is part of this source code package. */ package ccittfax import ( "math" ) var ( white byte = 1 black byte = 0 ) // Encoder implements a CCITT facsimile (fax) Group3 and Group4 encoding/decoding algorithms. type Encode...
package hms import ( "bytes" "io" "os" "path" "strings" "time" "github.com/dhowden/tag" ) // File types const ( FTfile = 0 FTdir = 1 FTdrv = 2 FTctgr = 3 ) // File groups const ( FGother = 0 FGvideo = 1 FGaudio = 2 FGimage = 3 FGbooks = 4 FGtexts = 5 FGpacks = 6 FGdir = 7 ) // FGnum is count...
package dog import ( "crypto/rand" "errors" "fmt" "log" "math/big" "os" "strings" "syscall" "time" "github.com/bingoohuang/gg/pkg/man" "github.com/bingoohuang/gg/pkg/ss" "github.com/bingoohuang/gg/pkg/timex" "github.com/gobars/cmd" "github.com/shirou/gopsutil/mem" ) // Dog 表示 看门狗. type Dog struct { Co...
package exporter import ( "context" "database/sql" "fmt" "github.com/lib/pq" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/common/log" "sort" "strings" "sync" "time" ) /**********************************************************************************************\ * ...
package eval import ( "bufio" "errors" "fmt" "io" "log" "os" "path" "strings" "github.com/elves/elvish/glob" "github.com/elves/elvish/parse" ) var outputCaptureBufferSize = 16 // ValuesOp is an operation on an EvalCtx that produce Value's. type ValuesOp struct { Func ValuesOpFunc Begin, End int } ...
package manager import ( "encoding/json" "fmt" "github.com/antigloss/go/logger" "github.com/flavio-fernandes/smokey/internal/mqtt_agent" "strconv" "strings" "sync" "time" ) var ( knownErrorValues = map[int64]struct{}{0: {}, 1: {}} ) const ( cmdTsDampenInterval = 6 * time.Second DefaultAutoOffSeconds = 3...
package rpc import ( "crypto/tls" "encoding/base64" "encoding/json" "errors" "io/ioutil" "net" "net/http" "net/url" "sync" "time" dbhelper "easyagent/go-common/db-helper" "easyagent/internal/proto" "easyagent/internal/server/log" "easyagent/internal/server/model" "easyagent/internal/server/publisher" ...
package state_surgery import ( "bytes" "encoding/json" "fmt" "math/big" "os" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/core/rawdb" "github.com/ethereum/go-ethereum/core/state" "github.com/ethereum/go-ethereum/core/types" "github.com/eth...
// Copyright 2020 Wearless Tech 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...
package main import ( "bytes" "errors" "io" "log" "net" "sync/atomic" "time" ) type ResponseWriter interface { WriteStatus(statusCode int) WriteDate(date string) WriteServer(server string) WriteContentLength(length int64) WriteOtherHeader(key string, value string) Write([]byte) (int, error) // TODO Upgr...
package metrics import ( "fmt" "math" "regexp" "strconv" "strings" "sync" "time" "github.com/redhat-cne/sdk-go/pkg/channel" "github.com/prometheus/client_golang/prometheus/collectors" "github.com/redhat-cne/cloud-event-proxy/pkg/common" "github.com/prometheus/client_golang/prometheus" ptpConfig "github...
// Copyright 2020 Red Hat, 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 sql import ( "bytes" "errors" "fmt" "strings" "time" ) // DataType represents the primitive data types available in MessageQL. type DataType int const ( // Unknown primitive data type. Unknown DataType = 0 // Float means the data type is a float Float = 1 // Integer means the data type is a integer...
// Command srv implements a webserver that implements an mp3 player and hosts a UI for it. // // This command expects an mp3 database to be set up and filled. package main /* TODO: Have a state store to help with debugging. Stores what the current state is: 1. WHen a function is entered and exited, store that in th...
// Copyright 2015 <NAME>. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package config provides access to the configuration models required by // the rest of the modules. package config import ( "bufio" "fmt" "math" "net" "os" "os...
package rush_n_crush import ( "bytes" "errors" "fmt" "strconv" "strings" ) type Player struct { id int8 owner int pos Position health int16 maxHealth int16 lives int8 // -1 is infinite respawn int moves int8 direction int16 // 0 is right, 180 or -...
//----------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. // See LICENSE.txt file in the project root for full license information. //----------------------------------------------------------------------------- pa...
// WARNING: This file has automatically been generated // Code generated by https://git.io/c-for-go. DO NOT EDIT. package generated /* #cgo LDFLAGS: -L${SRCDIR}/.. #cgo pkg-config: ${SRCDIR}/../filcrypto.pc #include "../filcrypto.h" #include <stdlib.h> #include "cgo_helpers.h" */ import "C" // FilBLSSignature as dec...
package lo import ( "math" "strconv" "strings" "testing" "github.com/stretchr/testify/assert" ) type foo struct { bar string } func (f foo) Clone() foo { return foo{f.bar} } func TestFilter(t *testing.T) { is := assert.New(t) r1 := Filter[int]([]int{1, 2, 3, 4}, func(x int, _ int) bool { return x%2 == ...
/* Package record is a package to open, read, and save game records stored in filesystem's format. We encode states as diffs by default, but if that's not possible (for example, the diff the diffing library gave did not give us a valid diff because applying it to the left input does not provide the right input) then ...
package mpjitsivideobridge import ( "encoding/json" "flag" "fmt" "net/http" mp "github.com/mackerelio/go-mackerel-plugin" ) // JitsiVideobridgePlugin as Mackerel agent plugin for Jitsi Videobridge type JitsiVideobridgePlugin struct { KeyPrefix string LabelPrefix string Host string Port strin...
package server import ( "compress/gzip" "context" "encoding/json" "errors" "fmt" golog "log" "net/http" "net/http/pprof" "net/url" "path/filepath" "sync" "sync/atomic" "time" "github.com/golang-jwt/jwt" gmux "github.com/gorilla/mux" "github.com/klauspost/compress/gzhttp" "github.com/prometheus/client...
/* Copyright 2021 The KodeRover 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, s...
// Code generated by gen_sort_variants.go; DO NOT EDIT. // Copyright 2022 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 genh // insertionSortLessFunc sorts data[a:b] using insertion sort. func insertionSortLessFunc...
package governance import ( "context" "fmt" "sync" "gioui.org/layout" "gioui.org/text" "gioui.org/widget" "gioui.org/widget/material" "github.com/planetdecred/dcrlibwallet" "github.com/planetdecred/godcr/ui/decredmaterial" "github.com/planetdecred/godcr/ui/load" "github.com/planetdecred/godcr/ui/modal" "g...
/* 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...
// Copyright 2020 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...
// Copyright 2015 The go-ethereum Authors // This file is part of the go-ethereum library. // // The go-ethereum library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License...
package instances import ( "context" "encoding/json" "errors" "fmt" "io" "io/ioutil" "log" "math" "net/http" "net/url" "os" "os/exec" "os/signal" "path/filepath" "runtime" "strings" "syscall" "time" "github.com/minepkg/minepkg/internals/minecraft" "github.com/minepkg/minepkg/pkg/manifest" "github...
// Copyright (c) 2020, 2021, <NAME> // All rights reserved. // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. package json import ( "bytes" "errors" "fmt" "strconv" "strings" "unicode" "unicode/utf8" "github.com/maxatome/go-...
package main import ( "context" "flag" "fmt" "io/fs" "os" "os/exec" "path/filepath" "runtime" "strings" "sync" "time" prometheusapi "github.com/prometheus/client_golang/api/prometheus/v1" "github.com/sirupsen/logrus" "golang.org/x/sync/semaphore" corev1 "k8s.io/api/core/v1" utilerrors "k8s.io/apimach...
// Copyright 2019 The Fuchsia 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 ( "bytes" "compress/gzip" "context" "crypto/ed25519" "crypto/md5" "flag" "fmt" "hash" "io" "io/ioutil" "os" "path" "path/...
// Copyright 2020 ConsenSys Software 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 a...
package expr_test import ( "encoding/hex" "strings" "testing" "github.com/brimdata/zed" "github.com/brimdata/zed/compiler" "github.com/brimdata/zed/compiler/ast/dag" "github.com/brimdata/zed/lake/mock" "github.com/brimdata/zed/runtime/expr" "github.com/brimdata/zed/runtime/op" "github.com/brimdata/zed/zbuf"...
/* * 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 Li...
package fb2text import ( "archive/zip" "encoding/xml" xs "github.com/huandu/xstrings" "net/http" "os" "regexp" "strings" "golang.org/x/net/html/charset" ) /* BookInfo is a short information about FB2 book. It supports few tags only: book title, first and last author names, sequence, genre, and text language ...
// Package config defines the config structs and some config parser interfaces and implementations package config import ( "crypto/sha256" "encoding/base64" "encoding/json" "errors" "fmt" "regexp" "sort" "strings" "time" "github.com/devopsfaith/krakend/encoding" ) const ( // BracketsRouterPatternBuilder u...
package jws import ( "bytes" "encoding/json" "net/http" "strings" "github.com/briankassouf/jose" "github.com/briankassouf/jose/crypto" ) // JWS implements a JWS per RFC 7515. type JWS interface { // Payload Returns the payload. Payload() interface{} // SetPayload sets the payload with the given value. Set...
/* Copyright 2018 Gravitational, 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, soft...
package microapp import ( "context" "crypto/tls" "crypto/x509" "database/sql" "errors" "fmt" "io" "io/ioutil" "net" "net/http" "os" "runtime/debug" "strconv" "strings" "gorm.io/gorm/schema" "time" "github.com/bradfitz/gomemcache/memcache" "github.com/golang-migrate/migrate/v4" "github.com/golang-...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.22.0 // protoc v3.13.0 // source: envoy/config/ratelimit/v4alpha/rls.proto package envoy_config_ratelimit_v4alpha import ( _ "github.com/cncf/udpa/go/udpa/annotations" v4alpha "github.com/envoyproxy/go-control-plane/envoy/con...
package chain_plugin import ( "github.com/eosspark/eos-go/chain/abi_serializer" "github.com/eosspark/eos-go/chain/types" . "github.com/eosspark/eos-go/chain/types/generated_containers" "github.com/eosspark/eos-go/common" "github.com/eosspark/eos-go/common/eos_math" "github.com/eosspark/eos-go/crypto" . "github....
package cmd import ( "fmt" "io" "reflect" "strconv" "strings" "github.com/olekukonko/tablewriter" "github.com/smartcontractkit/chainlink/core/logger" "github.com/smartcontractkit/chainlink/core/services/pipeline" "github.com/smartcontractkit/chainlink/core/store/models" "github.com/smartcontractkit/chainlin...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v2/resources/ad_group_ad.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/google...
package main import ( "bufio" "bytes" "context" "encoding/json" "fmt" "html/template" "io" "log" "net/http" "os" "os/signal" "strconv" "strings" "time" "github.com/ericdaugherty/ibc" flags "github.com/jessevdk/go-flags" gomail "gopkg.in/gomail.v2" ) var statusTemplateHTML = `<div> <h1>Boiler Status<...
// Copyright 2018 The gVisor 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 cl // #include "cl.h" import "C" import ( "errors" "fmt" "reflect" "runtime" "strings" "unsafe" ) var ( ErrUnknown = errors.New("cl: unknown error") // Generally an unexpected result from an OpenCL function (e.g. CL_SUCCESS but null pointer) ) type ErrOther int func (e ErrOther) Error() string { re...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.17.3 // source: screen_message.proto package pb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync...
/* Copyright 2018 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...
/* Copyright 2017 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 ( "context" "encoding/json" "errors" "fmt" "io" "net/http" "os" "sort" "strings" "github.com/Jeffail/gabs" "github.com/filecoin-project/go-address" "github.com/filecoin-project/go-state-types/abi" lcli "github.com/filecoin-project/lotus/cli" "github.com/filecoin-project/specs-actors/...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: example/proto/login/merge.proto // 账户合并相关 package login import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" math "math" ) // Reference imports to ...
package aws import ( "context" "flag" "fmt" "time" "github.com/go-kit/kit/log/level" "github.com/pkg/errors" promApi "github.com/prometheus/client_golang/api" promV1 "github.com/prometheus/client_golang/api/prometheus/v1" "github.com/prometheus/common/model" "github.com/weaveworks/common/mtime" "github.co...
package main import ( "bytes" "context" "encoding/json" "flag" "fmt" "io" "io/ioutil" "log" "net/http" "os" "os/exec" "os/signal" "path" "path/filepath" "strings" "sync" "syscall" "text/template" "time" "github.com/google/go-github/v27/github" "github.com/google/renameio" "golang.org/x/oauth2" ...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: customnetwork.proto package model import ( fmt "fmt" proto "github.com/gogo/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a co...
package service import ( "context" "encoding/json" "fmt" "net/http" "strings" regexp "github.com/dlclark/regexp2" "github.com/pkg/errors" "github.com/casbin/casbin/v2" "github.com/go-oauth2/oauth2/v4/manage" "github.com/tkeel-io/kit/log" transport_http "github.com/tkeel-io/kit/transport/http" "github.co...
// Copyright (c) 2015 10X Genomics, Inc. All rights reserved. /* This provides a Go <--> BWA interface */ package gobwa // #cgo LDFLAGS: -lbwa -lz -lm -ljemalloc // #include "bwa_bridge.h" // #include "bwa/bwamem.h" // #include "bwa/bwa.h" // #include "bwa/bwt.h" // #include <stdlib.h> import "C" import "unsafe" imp...