carbon comparison

package examples import ( "fmt" "github.com/uniplaces/carbon" ) func comparison() { t1, _ := carbon.CreateFromDate(2010, 10, 1, "Europe/Paris") t2, _ := carbon.CreateFromDate(2011, 10, 20, "Europe/Paris") fmt.Printf("t1 equal to t2: %t", t1.Eq(t
  • Views: 3
  • Keywords:

NATS parser_test

// Copyright 2012-2020 The NATS 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
  • Views: 5
  • Keywords: NATS,

grpc-go client

/* * * Copyright 2015 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/lic

lura doc

// SPDX-License-Identifier: Apache-2.0 /* Package test contains the integration tests for the KrakenD framework */ package test
  • Views: 4
  • Keywords: lura,

dot no_attribute_test

// Copyright (C) 2019 rameshvk. All rights reserved. // Use of this source code is governed by a MIT-style license // that can be found in the LICENSE file. package riched_test import ( "testing" "github.com/dotchain/dot/changes" "github.com/dotcha
  • Views: 3
  • Keywords: dot,

Express app.param

"use strict" var assert = require("assert") var express = require("../") , request = require("supertest"); describe("app", function(){ describe(".param(fn)", function(){ it("should map app.param(name, ...) logic", function(done){ var app

redis setval_test

package setval_test import ( "testing" "github.com/redis/go-redis/internal/customvet/checks/setval" "golang.org/x/tools/go/analysis/analysistest" ) func Test(t *testing.T) { testdata := analysistest.TestData() analysistest.Run(t, testdata, setval
  • Views: 5
  • Keywords: redis,

dot benchmark_test

// Copyright (C) 2018 rameshvk. All rights reserved. // Use of this source code is governed by a MIT-style license // that can be found in the LICENSE file. package dot_test import ( "testing" "github.com/dotchain/dot/changes" "github.com/dotchain/
  • Views: 3
  • Keywords: dot,

Oto main

// Copyright 2019 The Oto 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/license
  • Views: 3
  • Keywords: Oto,

grpc-go clientconn_state_transition_test

/* * * Copyright 2018 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/lic