internal/wire: copy over anonymous imports (#101)

Adds Kumbirai Tanekha to A+C.

Fixes #94
This commit is contained in:
Kumbirai Tanekha
2019-01-07 17:04:35 +00:00
committed by Ross Light
parent 4243b011bd
commit f285c073b5
7 changed files with 67 additions and 7 deletions

View File

@@ -0,0 +1,15 @@
// Copyright 2018 The Wire 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package anon1

View File

@@ -0,0 +1,15 @@
// Copyright 2018 The Wire 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package anon2

View File

@@ -17,6 +17,8 @@
package main
import (
_ "example.com/anon1"
_ "example.com/anon2"
"github.com/google/wire"
)

View File

@@ -9,6 +9,11 @@ import (
"example.com/bar"
)
import (
_ "example.com/anon1"
_ "example.com/anon2"
)
// Injectors from wire.go:
func injectFooBar() FooBar {