- 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
- // 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
- /*
*
* 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
- // SPDX-License-Identifier: Apache-2.0
/*
Package test contains the integration tests for the KrakenD framework
*/
package 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
- "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
- 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,
- // 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/
- // 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
- /*
*
* 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