text
stringlengths
3.08k
10.4k
/* Copyright 2017 Beekast. 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...
// // 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 ...
package main import ( "IPT/crypto" "IPT/core/ledger" "IPT/core/store" ."IPT/common" "IPT/common/log" "encoding/hex" "os" "fmt" ) const ( path string = "./Log" ) var Usage = func() { fmt.Println("Usage:") fmt.Println(" dump"); fmt.Println(" block <hash>"); fmt.Println(" tx <txid>"); fmt.Println(" as...
package drand import ( "bytes" "context" "sync" "time" dchain "github.com/drand/drand/chain" dclient "github.com/drand/drand/client" hclient "github.com/drand/drand/client/http" dlog "github.com/drand/drand/log" gclient "github.com/drand/drand/lp2p/client" "github.com/drand/kyber" kzap "github.com/go-kit/k...
package utils import ( "fmt" "io" "sort" "strings" "github.com/cli/cli/pkg/iostreams" "github.com/cli/cli/pkg/text" ) type TablePrinter interface { IsTTY() bool AddField(string, func(int, string) string, func(string) string) EndRow() Render() error } func NewTablePrinter(io *iostreams.IOStreams) TablePrin...
package main import ( "path/filepath" "regexp" "github.com/go-rod/rod/lib/utils" ) func main() { comment := `// This file is generated by "./lib/proto/generate"` schema := getSchema() code := comment + utils.S(` package proto import "reflect" // Version of cdp protocol const Version = "v{{.major}}...
// Copyright (c) 2020 Cisco and/or its affiliates. // // 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/LICE...
// Licensed to LinDB under one or more contributor // license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright // ownership. LinDB licenses this file to you under // the Apache License, Version 2.0 (the "License"); you may // not use this file except in compli...
package uuid import ( "database/sql/driver" "encoding/hex" "errors" "fmt" "strings" ) const ( byteSize = 16 hexSize = byteSize*2 + 4 // double the bytes + 4 bytes of dashes urnPrefix = "urn:uuid:" urnSize = hexSize + len(urnPrefix) urnOffset = urnSize - hexSize guidSize = hexSize + 2 ) var ( // Nul...
// Copyright 2015 <NAME>. All rights reserved. // Use of this source code is governed by the MIT-styled // license that can be found in the LICENSE file. package main import ( "fmt" "strings" termbox "github.com/nsf/termbox-go" ) // A Buffer is a screen of the ui. Buffers are opened on a stack. type Buffer inter...
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 // protoc v3.12.4 // source: call.proto package proto import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.or...
// Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one // or more contributor license agreements. Licensed under the Elastic License; // you may not use this file except in compliance with the Elastic License. // +build linux package login import ( "fmt" "net" "time" "github.com/pkg/err...
package cmd import ( "errors" "fmt" "os" "github.com/mikefarah/yq/v4/pkg/yqlib" "github.com/spf13/cobra" ) func createEvaluateSequenceCommand() *cobra.Command { var cmdEvalSequence = &cobra.Command{ Use: "eval [expression] [yaml_file1]...", Aliases: []string{"e"}, Short: "(default) Apply the expres...
package main import ( "fmt" "github.com/go-gl/gl/v3.3-core/gl" "github.com/go-gl/mathgl/mgl32" "github.com/leafi/blunt/common" ) var valloc chan int = make(chan int) var vfree chan int = make(chan int) var vstop chan bool = make(chan bool) const highv int = 256000 // vvv what should the limit be? vvv var nextPo...
// Copyright (c) 2017 Cisco and/or 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 entities import ( "fmt" "math" ) // RailEdge connects from RailNode to RailNode. // It's directional. type RailEdge struct { Base Persistence FromNode *RailNode `gorm:"-" json:"-"` ToNode *RailNode `gorm:"-" json:"-"` Reverse *RailEdge `gorm:"-" json:"-"` LineTasks ma...
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package acmpca import ( "context" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/internal/awsutil" ) type ListTagsInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) that was returned when you cal...
/* Copyright 2019 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
// +build integration annotated package annotation import ( "context" "fmt" "log" "os" "reflect" "testing" vanClient "github.com/skupperproject/skupper/client" "github.com/skupperproject/skupper/pkg/utils" "github.com/skupperproject/skupper/test/utils/base" "github.com/skupperproject/skupper/test/utils/con...
// 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 writ...
package atlassian import ( "encoding/json" "fmt" "github.com/andygrunwald/go-jira" "io/ioutil" "os" "os/user" "path/filepath" "regexp" "strings" ) const InProgressStatusID = "10105" func MoveIssueToInProgress(jiraClient *jira.Client, issue *jira.Issue, originalStatus string, issueKey string) error { if iss...
package models import ( "time" "encoding/json" //"fmt" "github.com/containerops/vessel/utils/timer" // "k8s.io/kubernetes/pkg/api/v1" ) //Stage Type const ( STAGECONTAINER = "container" STAGEVM = "vm" STAGEPC = "pc" ) // Stage stage data type Stage struct { ID uint64 `js...
/* Copyright 2017 The Perkeep 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, so...
package primary import ( "context" "time" "github.com/seankhliao/uva-rp1/api" "github.com/seankhliao/uva-rp1/nfdstat" ) func (p *Primary) distributor() { // set initial strategy for { err := nfdstat.RouteStrategy(context.Background(), "/", p.singleStrategy) if err != nil { p.log.Error().Err(err).Msg("di...
package iso20022 // Completion of a securities settlement instruction, wherein securities are delivered/debited from a securities account and received/credited to the designated securities account. type Transfer26 struct { // Unique and unambiguous identifier for a transfer execution, as assigned by a confirming par...
package store_test import ( "bytes" "math/big" "testing" "github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/ethereum/go-ethereum/accounts/abi/bind/backends" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core" "github.com/ethereum/go-ethereum/crypto" "github.com/ethere...
// Copyright (c) 2017 Muges // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without limitation the // rights to use, copy, modify, merge, publish, distrib...
package main import ( "fmt" "html/template" "net/http" "os" "path/filepath" "strconv" "time" "github.com/ianfoo/advent-of-code-2020/internal/leaderboard" "github.com/urfave/cli/v2" ) func main() { if err := run(); err != nil { fmt.Fprintf(os.Stderr, "error: %v\n", err) os.Exit(1) } } func run() error...
package usecase import ( "context" "errors" "fmt" "time" "github.com/dgrijalva/jwt-go" ) type Permission string const ( PermissionReadUserInformation Permission = "READ_USER_INFORMATION" PermissionReadBoardInformation Permission = "READ_BOARD_INFORMATION" PermissionReadTreasureInformation Permission ...
// Code generated by go-swagger; DO NOT EDIT. package lte_gateways // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github...
// Copyright 2020 The Chromium OS 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 crostini import ( "context" "fmt" "time" "chromiumos/tast/ctxutil" "chromiumos/tast/errors" "chromiumos/tast/local/chrome" "chromiumos...
package p2c import ( "fmt" "math" "math/rand" "strings" "sync" "sync/atomic" "time" "github.com/351423113/go-zero/core/logx" "github.com/351423113/go-zero/core/syncx" "github.com/351423113/go-zero/core/timex" "github.com/351423113/go-zero/zrpc/internal/codes" "google.golang.org/grpc/balancer" "google.gol...
// Copyright (C) 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 t...
/* 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 2018 <NAME>, 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 telegram import ( "fmt" "strconv" "strings" tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api" "github.com/kak-tus/irma_bot/cnf" "github.com/kak-tus/irma_bot/db" ) type Command struct { Field string Maximum int Minimum int Text string Value bool ValueF...
// The MIT License (MIT) // // 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 Software without restriction, including without limitation the rights //...
// Copyright 2016 ePoxy 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...
// Copyright 2014 Auburn University. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package dataflow provides data flow analyses that can be performed on a // previously constructed control flow graph, including a reaching definitions // ...
package scdn //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 //distribu...
package http import ( "net/http" "path/filepath" "text/template" "github.com/target/gophersaurus/render" ) // ResponseWriter is an interface representing a HTTP response. type ResponseWriter interface { Status(code int) Header() http.Header WriteHeader(int) Read(p []byte) (n int, err error) Bytes() []byte ...
// Copyright 2018 The Cockroach Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or a...
package actorstate import ( "context" "github.com/filecoin-project/lily/chain/actors/adt" "github.com/filecoin-project/lily/chain/actors/builtin/multisig" "github.com/filecoin-project/lotus/chain/types" "go.opentelemetry.io/otel/api/global" "golang.org/x/xerrors" "github.com/filecoin-project/lily/lens" "gith...
package oteleventually import ( "context" "encoding/json" "fmt" "time" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/metric" "go.opentelemetry.io/otel/metric/unit" "go.opentelemetry.io/otel/trace" "github.com/get-eventually/go-eventually" "github.com/get-eventually/go-eventually/eventstore...
package gomaxscale import ( "encoding/json" "fmt" "strings" "sync/atomic" "time" ) // CDCEventType is the type of the event. type CDCEventType string // List of possible event types. const ( // CDCEventTypeDDL DDL (Data Definition Language) are for database changes. CDCEventTypeDDL CDCEventType = "ddlEvent" ...
// Copyright 2018 The Prizem 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 discovery import ( "encoding/json" "fmt" "io/ioutil" "math" "net" "net/http" "strconv" "sync" "sync/atomic" "time" "unsafe" "github.co...
/* Copyright 2018 Mirantis 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 IBM Corp. 2017 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 (C) 2017 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 in writing, softwa...
package api import ( "errors" "net/http" "strconv" "time" "github.com/grafana/grafana/pkg/api/dtos" "github.com/grafana/grafana/pkg/api/response" "github.com/grafana/grafana/pkg/components/apikeygen" "github.com/grafana/grafana/pkg/models" "github.com/grafana/grafana/pkg/services/serviceaccounts" "github.co...
package controller import ( "errors" "github.com/golang/glog" kapi "k8s.io/kubernetes/pkg/api" apierrs "k8s.io/kubernetes/pkg/api/errors" "github.com/openshift/origin/pkg/client" "github.com/openshift/origin/pkg/image/api" ) var ErrNotImportable = errors.New("the specified stream cannot be imported") type I...
package forms import ( "testing" "time" "github.com/bkrn/go-form-it/common" "github.com/bkrn/go-form-it/fields" ) const ( style = formcommon.BOOTSTRAP ) var ( txt, psw, btn fields.FieldInterface ) func TestFieldRender(t *testing.T) { field := fields.TextField("test") field.AddClass("test").AddClass("class"...
package cfitsio import ( "fmt" "reflect" ) // Rows is the result of a query on a FITS Table. // Its cursors starts before the first row of the result set. // Use Next to advance through the rows: // // rows, err := table.Read(0, -1) // ... // for rows.Next() { // var id int // var x float64 // err...
package transeq import ( "bufio" "bytes" "context" "fmt" "io" "sync" "github.com/feliixx/gotranseq/ncbicode" ) const ( // nCode has to be 0 in order to compute two-letters code nCode uint8 = iota aCode cCode tCode gCode uCode = tCode // Length of the array to store codon <-> AA correspondance // use...
package main import ( "flag" "fmt" "net/http" "time" rice "github.com/GeertJohan/go.rice" "github.com/labstack/echo/v4" "github.com/ngoduykhanh/wireguard-ui/emailer" "github.com/ngoduykhanh/wireguard-ui/handler" "github.com/ngoduykhanh/wireguard-ui/router" "github.com/ngoduykhanh/wireguard-ui/store/jsondb"...
// Copyright (C) 2019-2021, <NAME>, Inc. All rights reserved. // See the file LICENSE for licensing terms. package ghttp import ( "bytes" "context" "crypto/tls" "crypto/x509" "net/http" "net/url" "github.com/hashicorp/go-plugin" "google.golang.org/protobuf/types/known/emptypb" "github.com/flare-foundation/...
// 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. // Primitive HTTP client. See RFC 2616. package http import ( "bufio"; "fmt"; "io"; "net"; "os"; "strconv"; "strings"; ) // Response represents the re...
/******************************************************************************* * Copyright 2017 Dell 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/licen...
package tree import ( "fmt" ) type Value string type Node struct { Val Value Left *Node Right *Node } type Tree struct { Root *Node } type TreeNode struct { Val int Left *TreeNode Right *TreeNode } func (t *Tree) LevelOrder() { if t == nil { fmt.Println("nil") return } queue := []*Node{t.Root...
package service import ( "context" "time" "github.com/benthosdev/benthos/v4/internal/component/metrics" "github.com/benthosdev/benthos/v4/internal/component/processor" "github.com/benthosdev/benthos/v4/internal/message" "github.com/benthosdev/benthos/v4/internal/tracing" ) // Processor is a Benthos processor i...
// Copyright 2020, OpenTelemetry 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 vm import ( "bytes" "fmt" "reflect" "github.com/ipfs/go-cid" cbg "github.com/whyrusleeping/cbor-gen" "golang.org/x/xerrors" "github.com/filecoin-project/lotus/chain/actors" "github.com/filecoin-project/lotus/chain/actors/aerrors" "github.com/filecoin-project/lotus/chain/types" ) type invoker struct...
package azurerm import ( "fmt" "log" "net/http" "github.com/Azure/azure-sdk-for-go/services/eventhub/mgmt/2017-04-01/eventhub" "github.com/hashicorp/terraform/helper/schema" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure" "github.com/terraform-providers/terraform-provider-azur...
/* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License i...
// Copyright 2012 <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 yall import ( "bufio" "os" ) type Env struct { values map[string]Expr parent *Env } func NewEnv() *Env { env := new(Env) env.values = make(map[string]E...
package exchange import ( "context" "encoding/csv" "errors" "fmt" "math" "os" "strconv" "time" "github.com/rodrigo-brito/ninjabot/model" "github.com/xhit/go-str2duration/v2" ) var ErrInsufficientData = errors.New("insufficient data") type PairFeed struct { Pair string File string Timeframe s...
package integration import ( "os" "strconv" "strings" . "github.com/containers/podman/v2/test/utils" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/syndtr/gocapability/capability" ) // helper function for confirming that container capabilities are equal // to those of the host, but only to ...
// Package lexer provides a generic Lexer framework that can be extended for any grammar. // See <NAME>'s lexer design [talk](https://www.youtube.com/watch?v=HxaD_trXwRE). // // You can define your token types by using the `lexer.TokenType` type (`int`) via // // const ( // StringToken lexer.TokenType =...
package memmetrics import ( "runtime" "sync" "testing" "time" "github.com/mailgun/timetools" "github.com/qutoutiao/oxy/testutils" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func TestDefaults(t *testing.T) { rr, err := NewRTMetrics(RTClock(testutils.GetClock())) require.NoE...
package mytls import ( "encoding/hex" "errors" "fmt" "io/ioutil" "strings" "tls_decript/mytls/tlsx" "tls_decript/utils" ) var sslKeyContent []byte type TLSDirection uint8 const ( ClientHello TLSDirection = 0 ServerHello TLSDirection = 1 ) func SetKeyLogContent(sslKeyFile string) { var err error sslKe...
package lblconv // KITTI specific functionality. import ( "fmt" "log" "os" "path/filepath" "strconv" "strings" ) // KITTIAnnotation is a single annotation within a KITTI file. type KITTIAnnotation struct { Coords [4]float64 // x1, y1, x2, y2 Label string Score float64 // Optional, linear confidence value....
package saelastic import ( "context" "crypto/tls" "crypto/x509" "io/ioutil" "log" "net/http" "time" "github.com/infrawatch/smart-gateway/internal/pkg/saconfig" "github.com/olivere/elastic" uuid "github.com/satori/go.uuid" ) var debuges = func(format string, data ...interface{}) {} // Default no debugging o...
// Copyright 2016 the Go-FUSE 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 pathfs import ( "io" "log" "os" "path/filepath" "syscall" "github.com/hanwen/go-fuse/fuse" "github.com/hanwen/go-fuse/fuse/nodefs" ) type...
package state import ( "context" "sync" "time" "github.com/golang/glog" "github.com/google/uuid" "github.com/pkg/errors" ) // DefaultPollInterval used directly for polling items, and indirectly for acquiring leases. var DefaultPollInterval = time.Second // MinLeaseDuration is the minimum amount of time to lea...
package bsonkit import ( "strconv" "strings" "sync" ) // PathEnd is returned by X if the end of the path has been reached. var PathEnd = "\x00" // ReducePath will reduce the path by one segment. It will return PathEnd if // there are no more segments. func ReducePath(path string) string { // get next dot i := s...
package main /** Copyright (c) 2020 DXC Technology - <NAME>. All rights reserved Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of cond...
package lnwire import ( "fmt" "io" "github.com/roasbeef/btcd/btcec" ) // SingleFundingResponse is the message Bob sends to Alice after she initiates // the single funder channel workflow via a SingleFundingRequest message. Once // Alice receives Bob's reponse, then she has all the items neccessary to // construct...
/* 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 sctp import ( "fmt" "io/ioutil" "time" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "github.com/openshift-kni/baremetal-deploy/features/functests/utils/clients" "github.com/openshift-kni/baremetal-deploy/features/functests/utils/namespace" mcfgv1 "github.com/openshift/machine-config-operator/...
// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose ei...
package communication import ( "encoding/json" "net/http" "strings" "github.com/scribble-rs/scribble.rs/game" ) //This file contains the API methods for the public API func enterLobby(w http.ResponseWriter, r *http.Request) { lobby, err := getLobby(r) if err != nil { if err == noLobbyIdSuppliedError { ht...
/* Copyright 2022 The Koordinator 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 ( "fmt" "os" "strconv" "github.com/spf13/cobra" connect "github.com/abrander/garmin-connect" ) var ( exportFormat string offset int count int ) func init() { activitiesCmd := &cobra.Command{ Use: "activities", } rootCmd.AddCommand(activitiesCmd) activitiesListCmd := ...
// Package classification Focalboard Server // // Server for Focalboard // // Schemes: http, https // Host: localhost // BasePath: /api/v1 // Version: 1.0.0 // License: Custom https://github.com/mattermost/focalboard/blob/main/LICENSE.txt // Contact: Focalboard<<EMAIL>> https://www.focalboard.co...
package contentful import ( "encoding/json" "fmt" "time" ) const ( linkTypeAsset = "Asset" linkTypeEntry = "Entry" linkType = "Link" ) type sys struct { Type string `json:"type"` LinkType string `json:"linkType"` ID string `json:"id"` } type itemInfo struct { Type string `json:"type"...
package edit import ( "strings" "github.com/elves/elvish/util" ) // cell is an indivisible unit on the screen. It is not necessarily 1 column // wide. type cell struct { rune width byte style string } // pos is the position within a buffer. type pos struct { line, col int } var invalidPos = pos{-1, -1} func...
package bithumb import ( "encoding/json" "errors" "fmt" "net/http" "time" "github.com/gorilla/websocket" "github.com/thrasher-corp/gocryptotrader/exchanges/asset" "github.com/thrasher-corp/gocryptotrader/exchanges/stream" "github.com/thrasher-corp/gocryptotrader/exchanges/ticker" "github.com/thrasher-corp/g...
// Code generated by go-swagger; DO NOT EDIT. package retention // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.co...
package testutils import ( "crypto/tls" "errors" "fmt" "net" "net/http" "net/http/httptest" "os" "os/exec" "regexp" "strings" "github.com/gobwas/ws" "github.com/julienschmidt/httprouter" ) // RunNucleiTemplateAndGetResults returns a list of results for a template func RunNucleiTemplateAndGetResults(templ...
package log import ( "encoding/json" "os" "strings" "sync" "time" ) const ( LevelTrace = iota LevelDebug LevelNotice LevelWarn LevelFatal ) const ( DefaultKey = "DefaultKey" DefaultLogId = "000000000000" DefaultAppTag = "DefaultAppTag" ) // map TRACE, DEBUG, NOTICE, WARN, FATAL to 0, 1, 2, 3, 4 var...
/* 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, ...
// 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 ...
/* * The Plaid API * * The Plaid REST API. Please see https://plaid.com/docs/api for more details. * * API version: 2020-09-14_1.44.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package plaid import ( "encoding/json" "time" ) // ItemPublicTokenCreateResponse Item...
// Copyright 2019-present Open Networking Foundation. // // 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 applica...
package model import ( "github.com/SmallTianTian/dingtalk/model/taobao" ) func NewOapiUserUpdateRequest() *OapiUserUpdateRequest { return &OapiUserUpdateRequest{} } type OapiUserUpdateRequest struct { taobao.SimpleTaobaoRequest taobao.SimpleResponse Resp OapiUserUpdateResponse Department []int6...
package generic import ( "github.com/pip-services3-go/pip-services3-expressions-go/io" "github.com/pip-services3-go/pip-services3-expressions-go/tokenizers" "github.com/pip-services3-go/pip-services3-expressions-go/tokenizers/utilities" ) // A <code>SymbolNode</code> object is a member of a tree that contains all ...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: envoy/config/filter/listener/original_src/v3alpha/original_src.proto package envoy_config_filter_listener_original_src_v3alpha import ( fmt "fmt" _ "github.com/envoyproxy/protoc-gen-validate/validate" proto "github.com/golang/protobuf/proto" math "math" ...
// Copyright 2020 <NAME> <<EMAIL>>. // All rights reserved. // Use of this source code is governed by a GPLv3-style // license that can be found in the LICENSE file. package main import ( "fmt" "log" "os" "time" "github.com/gotk3/gotk3/gtk" "github.com/zhanglongx/nns/kq" ) var version string = "0.9.0 (Beta)" ...
package webtools import ( "fmt" "html/template" "io/ioutil" "log" "net/http" "os" "path" "regexp" "strconv" "strings" basic "../../basic" img_tool "../png2jpg" ) type IndexPageInfo struct { Title string } func Start(port int) { fmt.Println("server start to run on port:", port) http.HandleFunc("/webt...
package main import ( "encoding/json" "fmt" "io" "os" "sort" "strings" "text/tabwriter" "github.com/docker/app/internal" "github.com/docker/cli/cli/command" "github.com/docker/cli/cli/command/stack" "github.com/docker/cli/cli/command/stack/options" "github.com/docker/cli/opts" "github.com/docker/distribu...