Skip to content

Commit

Permalink
Add missing copyright notices to all .go files
Browse files Browse the repository at this point in the history
GODRIVER-541

Change-Id: I48f4e0fe686724c59590fe24a8a7246bc020ec33
  • Loading branch information
jyemin committed Nov 5, 2018
1 parent 6c607da commit 37fc458
Show file tree
Hide file tree
Showing 98 changed files with 588 additions and 0 deletions.
6 changes: 6 additions & 0 deletions benchmark/bson.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package benchmark

import (
Expand Down
6 changes: 6 additions & 0 deletions benchmark/bson_document.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package benchmark

import (
Expand Down
6 changes: 6 additions & 0 deletions benchmark/bson_map.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package benchmark

import (
Expand Down
6 changes: 6 additions & 0 deletions benchmark/bson_struct.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package benchmark

import (
Expand Down
6 changes: 6 additions & 0 deletions benchmark/bson_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package benchmark

import "testing"
Expand Down
6 changes: 6 additions & 0 deletions benchmark/bson_types.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package benchmark

import "github.com/mongodb/mongo-go-driver/bson/objectid"
Expand Down
6 changes: 6 additions & 0 deletions benchmark/canary.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package benchmark

import (
Expand Down
6 changes: 6 additions & 0 deletions benchmark/canary_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package benchmark

import "testing"
Expand Down
6 changes: 6 additions & 0 deletions benchmark/harness.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package benchmark

import (
Expand Down
6 changes: 6 additions & 0 deletions benchmark/harness_case.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package benchmark

import (
Expand Down
6 changes: 6 additions & 0 deletions benchmark/harness_main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package benchmark

import (
Expand Down
6 changes: 6 additions & 0 deletions benchmark/harness_results.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package benchmark

import (
Expand Down
6 changes: 6 additions & 0 deletions benchmark/multi.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package benchmark

import (
Expand Down
6 changes: 6 additions & 0 deletions benchmark/multi_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package benchmark

import "testing"
Expand Down
6 changes: 6 additions & 0 deletions benchmark/single.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package benchmark

import (
Expand Down
6 changes: 6 additions & 0 deletions benchmark/single_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package benchmark

import "testing"
Expand Down
6 changes: 6 additions & 0 deletions bson/benchmark_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package bson

import (
Expand Down
6 changes: 6 additions & 0 deletions bson/bsoncodec/bsoncodec.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package bsoncodec

import (
Expand Down
6 changes: 6 additions & 0 deletions bson/bsoncodec/bsoncodec_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package bsoncodec

import (
Expand Down
6 changes: 6 additions & 0 deletions bson/bsoncodec/default_value_decoders.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package bsoncodec

import (
Expand Down
6 changes: 6 additions & 0 deletions bson/bsoncodec/default_value_decoders_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package bsoncodec

import (
Expand Down
6 changes: 6 additions & 0 deletions bson/bsoncodec/default_value_encoders.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package bsoncodec

import (
Expand Down
6 changes: 6 additions & 0 deletions bson/bsoncodec/default_value_encoders_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package bsoncodec

import (
Expand Down
6 changes: 6 additions & 0 deletions bson/bsoncodec/mode.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package bsoncodec

import "fmt"
Expand Down
6 changes: 6 additions & 0 deletions bson/bsoncodec/proxy.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package bsoncodec

// Proxy is an interface implemented by types that cannot themselves be directly encoded. Types
Expand Down
6 changes: 6 additions & 0 deletions bson/bsoncodec/registry.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package bsoncodec

import (
Expand Down
6 changes: 6 additions & 0 deletions bson/bsoncodec/registry_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package bsoncodec

import (
Expand Down
6 changes: 6 additions & 0 deletions bson/bsoncodec/struct_codec.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package bsoncodec

import (
Expand Down
6 changes: 6 additions & 0 deletions bson/bsoncodec/struct_codec_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package bsoncodec

import (
Expand Down
6 changes: 6 additions & 0 deletions bson/bsoncodec/struct_tag_parser.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package bsoncodec

import (
Expand Down
6 changes: 6 additions & 0 deletions bson/bsoncodec/struct_tag_parser_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package bsoncodec

import (
Expand Down
6 changes: 6 additions & 0 deletions bson/bsoncodec/types.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package bsoncodec

import (
Expand Down
6 changes: 6 additions & 0 deletions bson/bsoncore/bsoncore.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

// Package bsoncore contains functions that can be used to encode and decode BSON
// elements and values to or from a slice of bytes. These functions are aimed at
// allowing low level manipulation of BSON and can be used to build a higher
Expand Down
6 changes: 6 additions & 0 deletions bson/bsoncore/bsoncore_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package bsoncore

import (
Expand Down
6 changes: 6 additions & 0 deletions bson/bsoncore/document.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package bsoncore

import (
Expand Down
6 changes: 6 additions & 0 deletions bson/bsoncore/document_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package bsoncore

import (
Expand Down
6 changes: 6 additions & 0 deletions bson/bsoncore/element.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package bsoncore

import (
Expand Down
6 changes: 6 additions & 0 deletions bson/bsoncore/element_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package bsoncore

import (
Expand Down
6 changes: 6 additions & 0 deletions bson/bsoncore/value.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package bsoncore

import (
Expand Down
6 changes: 6 additions & 0 deletions bson/bsoncore/value_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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

package bsoncore

import (
Expand Down
Loading

0 comments on commit 37fc458

Please sign in to comment.