Skip to content

Commit

Permalink
rename source
Browse files Browse the repository at this point in the history
  • Loading branch information
aqaurius6666 committed Jan 13, 2025
1 parent fecc592 commit c2b15f9
Show file tree
Hide file tree
Showing 142 changed files with 290 additions and 219 deletions.
2 changes: 1 addition & 1 deletion _tutorial/wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// The build tag makes sure the stub is not built in the final build.
package main

import "github.com/google/wire"
import "github.com/aqaurius6666/wire"

// InitializeEvent creates an Event. It will error if the Event is staffed with
// a grumpy greeter.
Expand Down
2 changes: 1 addition & 1 deletion _tutorial/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions cmd/wire/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

// Wire is a compile-time dependency injection tool.
//
// For an overview, see https://github.com/google/wire/blob/master/README.md
// For an overview, see https://github.com/aqaurius6666/wire/blob/master/README.md
package main

import (
Expand All @@ -31,8 +31,8 @@ import (
"strconv"
"strings"

"github.com/aqaurius6666/wire/internal/wire"
"github.com/google/subcommands"
"github.com/google/wire/internal/wire"
"github.com/pmezard/go-difflib/difflib"
"golang.org/x/tools/go/types/typeutil"
)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/google/wire
module github.com/aqaurius6666/wire

go 1.12

Expand Down
4 changes: 2 additions & 2 deletions internal/wire/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ func processStructLiteralProvider(fset *token.FileSet, typeName *types.TypeName)

pos := typeName.Pos()
fmt.Fprintf(os.Stderr,
"Warning: %v, see https://godoc.org/github.com/google/wire#Struct for more information.\n",
"Warning: %v, see https://godoc.org/github.com/aqaurius6666/wire#Struct for more information.\n",
notePosition(fset.Position(pos),
fmt.Errorf("using struct literal to inject %s is deprecated and will be removed in the next release; use wire.Struct instead",
typeName.Type())))
Expand Down Expand Up @@ -1139,7 +1139,7 @@ func isWireImport(path string) bool {
if i := strings.LastIndex(path, vendorPart); i != -1 && (i == 0 || path[i-1] == '/') {
path = path[i+len(vendorPart):]
}
return path == "github.com/google/wire"
return path == "github.com/aqaurius6666/wire"
}

func isProviderSetType(t types.Type) bool {
Expand Down
5 changes: 3 additions & 2 deletions internal/wire/testdata/BindInjectorArg/foo/wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
//+build wireinject
//go:build wireinject
// +build wireinject

package main

import (
"github.com/google/wire"
"github.com/aqaurius6666/wire"
)

func inject(foo Foo) *Bar {
Expand Down
2 changes: 1 addition & 1 deletion internal/wire/testdata/BindInjectorArg/want/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions internal/wire/testdata/BindInjectorArgPointer/foo/wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
//+build wireinject
//go:build wireinject
// +build wireinject

package main

import (
"github.com/google/wire"
"github.com/aqaurius6666/wire"
)

func inject(foo *Foo) *Bar {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions internal/wire/testdata/BindInterfaceWithValue/foo/wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
//+build wireinject
//go:build wireinject
// +build wireinject

package main

import (
"io"
"os"

"github.com/google/wire"
"github.com/aqaurius6666/wire"
)

func inject() io.Writer {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions internal/wire/testdata/BuildTagsAllPackages/bar/bar.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//+build !wireinject
//go:build !wireinject
// +build !wireinject

// Package bar includes both wireinject and non-wireinject variants.
package bar

import "github.com/google/wire"
import "github.com/aqaurius6666/wire"

// Set provides an unfriendly user greeting.
var Set = wire.NewSet(wire.Value("Bah humbug! This is the wrong variant!"))
5 changes: 3 additions & 2 deletions internal/wire/testdata/BuildTagsAllPackages/bar/bar_inject.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//+build wireinject
//go:build wireinject
// +build wireinject

package bar

import "github.com/google/wire"
import "github.com/aqaurius6666/wire"

// Set provides a friendly user greeting.
var Set = wire.NewSet(wire.Value("Hello, World!"))
5 changes: 3 additions & 2 deletions internal/wire/testdata/BuildTagsAllPackages/foo/wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//+build wireinject
//go:build wireinject
// +build wireinject

package main

import (
"example.com/bar"
"github.com/google/wire"
"github.com/aqaurius6666/wire"
)

func injectedMessage() string {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/wire/testdata/Chain/foo/foo.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package main
import (
"fmt"

"github.com/google/wire"
"github.com/aqaurius6666/wire"
)

func main() {
Expand Down
5 changes: 3 additions & 2 deletions internal/wire/testdata/Chain/foo/wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//+build wireinject
//go:build wireinject
// +build wireinject

package main

import (
"github.com/google/wire"
"github.com/aqaurius6666/wire"
)

func injectFooBar() FooBar {
Expand Down
2 changes: 1 addition & 1 deletion internal/wire/testdata/Chain/want/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions internal/wire/testdata/Cleanup/foo/wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//+build wireinject
//go:build wireinject
// +build wireinject

package main

import (
"github.com/google/wire"
"github.com/aqaurius6666/wire"
)

func injectBar() (*Bar, func()) {
Expand Down
2 changes: 1 addition & 1 deletion internal/wire/testdata/Cleanup/want/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions internal/wire/testdata/CopyOtherDecls/foo/foo.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//+build wireinject
//go:build wireinject
// +build wireinject

// All of the declarations are in one file.
// Wire should copy non-injectors over, preserving imports.
Expand All @@ -22,7 +23,7 @@ package main
import (
"fmt"

"github.com/google/wire"
"github.com/aqaurius6666/wire"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion internal/wire/testdata/CopyOtherDecls/want/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions internal/wire/testdata/Cycle/foo/wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//+build wireinject
//go:build wireinject
// +build wireinject

package main

import (
"github.com/google/wire"
"github.com/aqaurius6666/wire"
)

func injectedBaz() Baz {
Expand Down
5 changes: 3 additions & 2 deletions internal/wire/testdata/DocComment/foo/wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
//+build wireinject
//go:build wireinject
// +build wireinject

package main

import (
"github.com/google/wire"
"github.com/aqaurius6666/wire"
)

/* blockComment returns Foo and has a /*- style doc comment */
Expand Down
2 changes: 1 addition & 1 deletion internal/wire/testdata/DocComment/want/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions internal/wire/testdata/EmptyVar/foo/wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//+build wireinject
//go:build wireinject
// +build wireinject

package main

import (
"github.com/google/wire"
"github.com/aqaurius6666/wire"
)

func injectedMessage() string {
Expand Down
2 changes: 1 addition & 1 deletion internal/wire/testdata/ExampleWithMocks/foo/foo.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"fmt"
"time"

"github.com/google/wire"
"github.com/aqaurius6666/wire"
)

func main() {
Expand Down
5 changes: 3 additions & 2 deletions internal/wire/testdata/ExampleWithMocks/foo/wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//+build wireinject
//go:build wireinject
// +build wireinject

package main

import (
"github.com/google/wire"
"github.com/aqaurius6666/wire"
)

// initApp returns a real app.
Expand Down
2 changes: 1 addition & 1 deletion internal/wire/testdata/ExampleWithMocks/want/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/wire/testdata/ExportedValue/bar/bar.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

package bar

import "github.com/google/wire"
import "github.com/aqaurius6666/wire"

var Value = wire.Value(PublicMsg)

Expand Down
5 changes: 3 additions & 2 deletions internal/wire/testdata/ExportedValue/foo/wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.

//+build wireinject
//go:build wireinject
// +build wireinject

package main

import (
"example.com/bar"
"github.com/google/wire"
"github.com/aqaurius6666/wire"
)

func injectedMessage() string {
Expand Down
2 changes: 1 addition & 1 deletion internal/wire/testdata/ExportedValue/want/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c2b15f9

Please sign in to comment.