text
stringlengths
5.51k
28.1k
// Copyright 2017 ETH Zurich // Copyright 2018 ETH Zurich, Anapaya 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 ...
// 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 (c) 2012-2018 <NAME>. All rights reserved. // Use of this source code is governed by a MIT license found in the LICENSE file. // +build alltests // +build go1.7 package codec // Run this using: // go test -tags=alltests -run=Suite -coverprofile=cov.out // go tool cover -html=cov.out // // Because bu...
// Package parquet is not intended to be used as a general library. The // code generated by the 'parquetgen' command is what actually uses it for // reading and writing parquet files. package parquet import ( "context" "encoding/binary" "fmt" "io" "io/ioutil" "strings" "github.com/apache/thrift/lib/go/thrift...
// Package cfb implements the Microsoft Compound File Binary File Format. package cfb // https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-cfb/53989ce4-7b05-4f8d-829b-d08d6148375b // Note for myself: // Storage = Directory // Stream = File import ( "bytes" "encoding/binary" "errors" "io" "io/io...
package graphqlbackend import ( "context" "math" "regexp" "sort" "strings" "sync" "time" "github.com/inconshreveable/log15" "github.com/neelance/parallel" "github.com/pkg/errors" "github.com/sourcegraph/go-lsp" "github.com/sourcegraph/sourcegraph/cmd/frontend/backend" "github.com/sourcegraph/sourcegraph...
// Copyright 2014 The Cockroach Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
package caddys3proxy import ( "bytes" "errors" "fmt" "html/template" "io" "io/ioutil" "net/http" "path" "path/filepath" "reflect" "strings" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/session" "github.com/aws/aws-sdk-go/service/s3" "git...
/* Copyright 2016 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
/* * * Copyright 2019 gRPC 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...
// Copyright 2018 The go-python Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Exception objects package py import ( "fmt" "io" "log" ) // A python Exception object type Exception struct { Base *Type Args ...
// Copyright 2020 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, ...
// Copyright 2017 The go-interpreter 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 disasm provides functions for disassembling WebAssembly bytecode. package disasm import ( "bytes" "encoding/binary" "errors" "io" ...
/* Copyright [2018] [jc3wish] 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 distrib...
package proxy import ( "crypto/tls" "crypto/x509" "fmt" "io/ioutil" "net/http" "net/http/httputil" "regexp" "strconv" "strings" "github.com/lightninglabs/aperture/auth" "github.com/lightninglabs/aperture/lsat" "google.golang.org/grpc/codes" ) const ( // formatPattern is the pattern in which the request ...
package tc /* 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 2019 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: storagepb.proto /* Package storagepb is a generated protocol buffer package. Package storagepb contains definitions for quota storage protos, which are recorded in etcd. It is generated from these files: storagepb.proto It has these top-level messages: B...
// Package bill incapsulates work with bill validators. package bill import ( "context" "encoding/binary" "fmt" "sync" "sync/atomic" "time" "github.com/juju/errors" "github.com/temoto/alive/v2" "github.com/temoto/vender/currency" "github.com/temoto/vender/hardware/mdb" "github.com/temoto/vender/hardware/mo...
// Copyright (c) 2016 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
// Copyright 2016 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 ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v2/services/group_placement_view_service.proto package services import ( context "context" fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" resources "google.golang.org/genproto/googleapis/ads/googleads/v2/resources" ...
// Code generated by transpiler. DO NOT EDIT. /** * Go Video Downloader * * Copyright 2019 Tenta, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.or...
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: get_approve_object_list.proto package cmdb_approve import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" types "github.com/gogo/protobuf/types" _ "github.com/mwitkow/go-proto-validators" math "math" ) // Re...
package exchange import ( "encoding/json" "errors" "fmt" dockerclient "github.com/fsouza/go-dockerclient" "github.com/open-horizon/anax/cli/cliutils" "github.com/open-horizon/anax/containermessage" "github.com/open-horizon/anax/cutil" "github.com/open-horizon/anax/exchange" "github.com/open-horizon/rsapss-too...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.14.0 // source: start.proto package start import ( proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protore...
package api import ( "errors" "log" "net/http" "strconv" "github.com/julienschmidt/httprouter" "github.com/threefoldfoundation/tfchain/pkg/persist" "github.com/threefoldfoundation/tfchain/pkg/types" "github.com/threefoldtech/rivine/build" "github.com/threefoldtech/rivine/crypto" "github.com/threefoldtech/ri...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.13.0 // source: proto/product_info.proto // //protoc -I proto/ proto/product_info.proto --go_out=plugins=grpc:go/server/ecommerce //для генерации сервиса: //protoc --go_out=go/server/ecommerce --go_opt=paths=so...
// 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. //go:generate go run gen.go gen_trieval.go gen_common.go // http://www.unicode.org/reports/tr46 // Package idna implements IDNA2008 using the compatibility pr...
package socks5client import ( "bytes" "errors" "fmt" "net" "strconv" "github.com/Asutorufa/yuhaiin/pkg/net/proxy/proxy" "github.com/Asutorufa/yuhaiin/pkg/net/utils" ) // https://tools.ietf.org/html/rfc1928 // client socks5 client // host socks5 server's ip/domain and port type client struct { hostname string...
package jasper import ( "context" "io" "io/ioutil" "time" "github.com/mongodb/grip" "github.com/mongodb/grip/level" "github.com/mongodb/grip/send" "github.com/pkg/errors" ) // OutputOptions provides a common way to define and represent the // output behavior of a evergreen/subprocess.Command operation. type ...
/* Copyright 2021 Adobe. 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 in writing, s...
package main import ( "context" "encoding/json" "flag" "fmt" "io" "os" "reflect" "strconv" "strings" "sync" "time" "vitess.io/vitess/go/vt/binlog/binlogplayer" vtgatepb "vitess.io/vitess/go/vt/proto/vtgate" "vitess.io/vitess/go/mysql" "vitess.io/vitess/go/sqltypes" "vitess.io/vitess/go/vt/discovery" ...
// Copyright 2012-present <NAME>. All rights reserved. // Use of this source code is governed by a MIT-license. // See http://olivere.mit-license.org/license.txt for details. package elastic import ( "fmt" "net/url" "strings" "golang.org/x/net/context" "gopkg.in/olivere/elastic.v3/uritemplates" ) // UpdateByQ...
//go:generate vfsgendev -source="github.com/infutur/reflectui/rui".Assets // Package reflectui implements a UI generator based on golang reflection and // golang templates // // reflectui transforms golang data structures to an internal representation and // schedules template execution based on this representation pa...
// Package eyecandy read/write SSA/ASS Subtitle Script package eyecandy import ( "fmt" "math" "regexp" "strings" "golang.org/x/image/font" "github.com/Alquimista/eyecandy/asstime" "github.com/Alquimista/eyecandy/reader" "github.com/Alquimista/eyecandy/utils" // "github.com/Alquimista/eyecandy/writer" writ...
// Copyright (c) 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 law o...
// Copyright (c) 2017-2018 The qitmeer developers // Copyright (c) 2013-2016 The btcsuite developers // Copyright (c) 2015-2018 The Decred developers // Use of this source code is governed by an ISC // license that can be found in the LICENSE file. package peerserver import ( "errors" "fmt" "github.com/Qitmeer/qitm...
// Code generated by goyacc -p labels -o pkg/parser/labels.go pkg/parser/labels.y. DO NOT EDIT. //line pkg/parser/labels.y:2 package parser import __yyfmt__ "fmt" //line pkg/parser/labels.y:2 import ( "github.com/prometheus/prometheus/pkg/labels" ) //line pkg/parser/labels.y:9 type labelsSymType struct { yys ...
package main import ( "fmt" "os" "os/exec" "os/signal" "path/filepath" "regexp" "strconv" "strings" "sync" "syscall" "time" "github.com/bmatcuk/doublestar/v4" "github.com/fsnotify/fsnotify" ) func isDir(path string) bool { s, err := os.Stat(path) if os.IsNotExist(err) { return false } if err != ni...
package types import ( "bytes" "encoding/json" "fmt" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" ethtypes "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/rlp" "math" "math/big" "strconv" "strings" ) var nullEthAddress = common.BigT...
package main import ( "bytes" "encoding/csv" "encoding/json" "fmt" "regexp" "strings" "syscall/js" "github.com/fanaticscripter/EggContractor/api" "github.com/fanaticscripter/EggContractor/util" ) var ( _playerIdPattern = regexp.MustCompile(`(?i)^EI\d+$`) _nonIdCharsPattern = regexp.MustCompile(`[^A-Za-z...
package main import ( "fmt" "github.com/adrs/shortestpath/graph" "image" "image/color" "image/gif" "io" "log" "math" "math/rand" "net/http" "os" "strconv" "strings" ) func inRange(cord graph.Cord, minLat, maxLat, minLong, maxLong int) bool { return cord.Lat >= minLat && cord.Lat <= maxLat && cord.Long >...
/* Package mjpeg contains an MJPEG video format writer. Examples Let's see an example how to turn the JPEG files 1.jpg, 2.jpg, ..., 10.jpg into a movie file: checkErr := func(err error) { if err != nil { panic(err) } } // Video size: 200x100 pixels, FPS: 2 aw, err := mjp...
/* Copyright (C) 2018 Yahoo Japan Corporation Athenz team. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
package core import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" serial "v2ray.com/core/common/serial" transport "v2ray.com/core/transport" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compil...
package main import ( "bytes" "encoding/binary" "math/rand" "net" "os" "reflect" "strconv" "time" fuzz "github.com/google/gofuzz" "github.com/google/gopacket" "github.com/google/gopacket/layers" "github.com/google/gopacket/pcap" "github.com/malfunkt/arpfox/arp" "github.com/malfunkt/ipra...
/* Copyright (c) 2020-2021 TriggerMesh 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...
// Copyright 2021 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 ( "flag" "fmt" "io" "log" "math/rand" "net" "os" "path/filepath" "strconv" "strings" "sync" "time" "github.com/google/syz...
package trie import ( "bytes" "math/bits" "reflect" "sort" "github.com/openacid/errors" "github.com/openacid/low/bitmap" "github.com/openacid/low/bmtree" "github.com/openacid/low/sigbits" "github.com/openacid/must" "github.com/openacid/slim/encode" ) // subset of keys: keys[keyStart:keyEnd]. // fromKeyBit ...
// Copyright 2016 Google LLC. 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v1/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/v1...
/* * Copyright 2020 WeBank * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writi...
package sap_api_output_formatter type Contract struct { InternalRealEstateNumber string `json:"InternalRealEstateNumber"` CompanyCode string `json:"CompanyCode"` RealEstateContract string `json:"RealEstateContract"` REStatusObject string `json:"REStatusObject"` ...
/* Copyright 2018 ZTE Corporation. 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 in wr...
/* Copyright <NAME> Based on the Kubernetes controller example at https://github.com/kubernetes/sample-controller 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...
package error_detection_components import ( "fmt" "strings" "strconv" "sort" "time" "net/http" "html/template" "encoding/json" "lacima.com/redis_support/graph_query" "lacima.com/redis_support/generate_handlers" "lacima.com/redis_support/redis_handlers" "lacima.com/server...
package pkservices import ( "context" "errors" "fmt" "github.com/peake100/gRPEAKEC-go/pkerr" "github.com/peake100/gRPEAKEC-go/pksync" "github.com/rs/zerolog" "google.golang.org/grpc" "net" "os" "os/signal" "sync" "testing" "time" ) // DefaultGrpcAddress is the default address the gRPC server will listen ...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.27.1 // protoc v3.15.8 // source: biconom/type/network.proto package network_pb import ( account "github.com/biconom/go-genproto/biconom/type/account" activity "github.com/biconom/go-genproto/biconom/type/activity" contact "...
/* Copyright 2021 The RamenDR 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, softwa...
package db type SqlSchema struct { Name string SqlQuery string } func generateSqlSchemas() (schemas []SqlSchema) { schemas = append( schemas, // tables SqlSchema{"VirtualMachine", schemaVm}, SqlSchema{"Datacenter", schemaDatacenter}, SqlSchema{"Poller", schemaPoller}, SqlSchema{"Cluster", schemaC...
// Copyright 2020 The Bidb 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 fair import ( "bytes" "compress/gzip" "database/sql" "fmt" "github.com/je4/FairService/v2/pkg/datatable" "github.com/je4/FairService/v2/pkg/model/dataciteModel" "github.com/je4/FairService/v2/pkg/model/myfair" "github.com/je4/FairService/v2/pkg/service/datacite" hcClient "github.com/je4/HandleCreator/...
package codec import ( "encoding/binary" "errors" "io" "io/ioutil" "math/rand" "net" "strconv" "sync" "sync/atomic" "time" "unicode/utf8" "github.com/luyu6056/tls" ) // The message types are defined in RFC 6455, section 11.8. const ( wsfpslimit = 200 //帧率限制 // TextMessage denotes a...
package expanders import ( "bytes" "context" "encoding/base64" "encoding/json" "fmt" "io/ioutil" "net/http" "github.com/lawrencegripper/azbrowse/pkg/endpoints" "github.com/lawrencegripper/azbrowse/pkg/swagger" ) // ResponsePropertyMapping stores the mapping from response property name to Metadata item name ...
package sqlz import ( "context" "database/sql" "fmt" "sort" "strconv" "strings" "github.com/jmoiron/sqlx" ) // Ext is a union interface which can bind, query, and exec, // with or without contexts, used by NamedQuery and NamedExec type Ext interface { sqlx.Queryer sqlx.QueryerContext sqlx.Execer sqlx.Exec...
package amqp import ( "context" "errors" "fmt" "github.com/peake100/rogerRabbit-go/pkg/amqp/amqpmiddleware" streadway "github.com/streadway/amqp" "github.com/stretchr/testify/assert" "io" "sync" "sync/atomic" "testing" "time" ) // livesOnce is a common interface between the *streadway.Connection and // *st...
// Code generated by go-swagger; DO NOT EDIT. package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "strconv" "github.com/go-openapi/errors" "github.com/go-openapi/strfmt" "github.com/go-openapi/swa...
package regrams import ( "bytes" "fmt" "regexp/syntax" "sort" "testing" ) var parseExamples = []struct { r string p string }{ {`[a-ce-z]`, `([a-c]|[e-z])`}, {`\\b[ab]{0,3}\\b`, `\b(([a-b])(([a-b])(([a-b])|ε)|ε)|ε)\b`}, {`BBB([^BD]*)EEE{2,3}`, "BBB(([\x00-A]|C|[E-\U0010FFFF]))*EEEE(E|ε)"}, {`[0-9a-zA-Z]{3}|...
package partition_manager import ( "context" "fmt" "strconv" "strings" "sync/atomic" "time" "github.com/journeymidnight/autumn/etcd_utils" "github.com/journeymidnight/autumn/manager" "github.com/journeymidnight/autumn/proto/pb" "github.com/journeymidnight/autumn/proto/pspb" "github.com/journeymidnight/autu...
package aoc2020 /* --- Day 22: Crab Combat PART 2--- You lost to the small crab! Fortunately, crabs aren't very good at recursion. To defend your honor as a Raft Captain, you challenge the small crab to a game of Recursive Combat. Recursive Combat still starts by splitting the cards into two decks (you offer to play ...
package main import ( "bufio" "bytes" "compress/gzip" "context" "crypto/hmac" "crypto/sha1" "crypto/sha256" "encoding/hex" "encoding/json" "fmt" "io" "io/ioutil" "log" "net/http" "strconv" "strings" "text/template" "time" "cloud.google.com/go/datastore" "google.golang.org/api/iterator" ) const pr...
package dns import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import net "v2ray.com/core/common/net" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that t...
package containerd import ( "bufio" "context" "fmt" "github.com/containerd/containerd" "github.com/containerd/containerd/content" "github.com/containerd/containerd/errdefs" "github.com/containerd/containerd/images" "github.com/containerd/containerd/images/archive" "github.com/containerd/containerd/platforms" ...
package main import ( "encoding/json" "fmt" "io/fs" "path/filepath" "regexp" "runtime" "sort" "strings" "sync" "github.com/aymerick/raymond" "github.com/gomarkdown/markdown" "github.com/gomarkdown/markdown/ast" "github.com/gomarkdown/markdown/parser" ) const csDir = "cheatsheets" const csTmplDir = "www"...
// Copyright 2020 Intel Corporation. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
package guestfs import ( "context" "fmt" "io" "os" "os/signal" "syscall" "time" "github.com/spf13/cobra" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/kubernetes" "k8s.io/client-go/kubernetes/scheme" "k8s.io/client-go/r...
// Discord bindings for the Hrngh bot. // Available at https://github.com/abeiron/hrngh // Copyright 2020-2021, Undying Memory <<EMAIL>>. All rights reserved. // Use of this source code is governed by the Microsoft Public License // that can be found in the LICENSE file. // This file contains an implementation of Gu...
package main import ( "errors" "fmt" "os" "os/signal" "path" "regexp" "runtime" "strings" "syscall" "time" "github.com/urfave/cli/v2" "github.com/xfy520/m3u8_cli/package/download/downloadManager" "github.com/xfy520/m3u8_cli/package/ffmpeg" "github.com/xfy520/m3u8_cli/package/lang" "github.com/xfy520/m...
package business import ( "errors" "fmt" "go-cms/global" "go-cms/model/business" bizReq "go-cms/model/business/request" "go-cms/model/common/request" "go-cms/model/common/response" bizSev "go-cms/service/business" commSev "go-cms/service/common" "time" "github.com/gin-gonic/gin" "github.com/gogf/gf/util/g...
/* 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, ...
// Copyright 2015 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 aoc2020 /* https://adventofcode.com/2020/day/10 --- Day 10: Adapter Array --- Patched into the aircraft's data port, you discover weather forecasts of a massive tropical storm. Before you can figure out whether it will impact your vacation plans, however, your device suddenly turns off! Its battery is dead....
package util import ( "fmt" "strings" "os" "time" "sync" "os/exec" "strconv" "io/ioutil" "gopkg.in/yaml.v2" "regexp" "database/sql" _ "github.com/go-sql-driver/mysql" "log" "context" "os/signal" "syscall" ) type TypeItem struct { Type string `yaml: "type"` Name string `yaml: "name"` Item ...
package commands import ( "fmt" "math/big" "path/filepath" "time" "github.com/lianxiangcloud/linkchain/accounts/keystore" bc "github.com/lianxiangcloud/linkchain/blockchain" cfg "github.com/lianxiangcloud/linkchain/config" cs "github.com/lianxiangcloud/linkchain/consensus" cc "github.com/lianxiangcloud/linkc...
package pathlib import ( "fmt" "io" "os" "path/filepath" "strings" "time" "github.com/spf13/afero" ) // Path is an object that represents a path type Path struct { path string fs afero.Fs // DefaultFileMode is the mode that is used when creating new files in functions // that do not accept os.FileMode ...
package ledger import ( "fmt" "github.com/abchain/fabric/core/db" "github.com/abchain/fabric/core/ledger/statemgmt" "github.com/abchain/fabric/core/ledger/statemgmt/state" "github.com/abchain/fabric/core/util" "github.com/abchain/fabric/protos" ) type LedgerSnapshot struct { stateM statemgmt.SnapshotState *db...
package godb import ( "database/sql" "errors" "fmt" "github.com/dimonrus/gohelp" "io/ioutil" "os" "os/exec" "path/filepath" "strings" "text/template" ) var DefaultSystemColumnsSoft = SystemColumns{Created: "created_at", Updated: "updated_at", Deleted: "deleted_at"} var DefaultSystemColumns = SystemColumns{C...
/* * Copyright 2017-2018 IBM Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
// SPDX-License-Identifier: Apache-2.0 package eventlog import ( "bytes" "crypto" "crypto/sha256" "encoding/binary" //"encoding/json" "errors" "fmt" "io" "io/ioutil" "reflect" "strings" ) type EventType uint32 type HashAlg uint8 type Algorithm uint16 const eventTypeNoAction = 0x03 const ( PrebootCert ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v0/errors/feed_item_error.proto package errors 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...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: go-grpc-example/10-grpc-gateway/proto/simple.proto package proto import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options" _ "github.com/mwitkow/go-proto-validator...
package dashboard import ( "fmt" "log" "strings" "sync" "time" "github.com/gdamore/tcell" ) // The update channel is used (with the UpdateXXX() functions as wrappers) to // update various dashboard fields. It is ready to receive records as soon as // the application is initialized. It is kept open through the ...
// Copyright 2021 <NAME>. All rights reserved. // Use of this source code is governed by the MIT // license that can be found in the LICENSE file. package main import ( "encoding/json" "fmt" "github.com/dustin/go-humanize" "github.com/gin-gonic/gin" "github.com/hako/durafmt" "gopkg.in/olahol/melody.v1" "io" "...
/* * Copyright (c) 2020, 2021, Oracle and/or its affiliates. * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. */ package v1 import ( "fmt" "github.com/operator-framework/operator-lib/status" appsv1 "k8s.io/api/apps/v1" coreV1 "k8s.io/api/core/v1" metav...
package storage_market import ( addr "github.com/filecoin-project/go-address" abi "github.com/filecoin-project/specs-actors/actors/abi" big "github.com/filecoin-project/specs-actors/actors/abi/big" builtin "github.com/filecoin-project/specs-actors/actors/builtin" vmr "github.com/filecoin-project/specs-actors/act...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: rpc/scanner/service.proto package scanner import ( fmt "fmt" common "github.com/aquasecurity/trivy/rpc/common" proto "github.com/golang/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.M...
// Package pcx implements a PCX image decoder and encoder. // // Specification: http://web.archive.org/web/20030111010058/http://www.nist.fss.ru/hr/doc/spec/pcx.htm // // Sample files: http://samples.ffmpeg.org/image-samples/pcx/ package pcx import ( "bufio" "errors" "fmt" "image" "image/color" "io" ) // Versio...
package release import ( "errors" "path/filepath" "time" "github.com/fluxcd/flux/pkg/git" "github.com/go-kit/kit/log" "github.com/google/go-cmp/cmp" corev1client "k8s.io/client-go/kubernetes/typed/core/v1" "github.com/fluxcd/helm-operator/pkg/apis/helm.fluxcd.io/v1" "github.com/fluxcd/helm-operator/pkg/cha...
// 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...