Skip to content

Commit

Permalink
add tools.go
Browse files Browse the repository at this point in the history
hajimehoshi committed Jul 29, 2022
1 parent 21207f8 commit e41a8be
Showing 2 changed files with 24 additions and 8 deletions.
8 changes: 0 additions & 8 deletions examples/resources/generate.go
Original file line number Diff line number Diff line change
@@ -48,11 +48,3 @@
//go:generate gofmt -s -w .

package resources

import (
// Dummy imports for go.mod for some Go files with 'ignore' tags. For example, `go mod tidy` does not
// recognize Go files with 'ignore' build tag.
//
// Note that this affects only importing this package, but not 'file2byteslice' commands in //go:generate.
_ "github.com/hajimehoshi/file2byteslice"
)
24 changes: 24 additions & 0 deletions tools.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Copyright 2021 The Ebitengine 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/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.

//go:build tools
// +build tools

// This file is to force adding dependencies to go.mod.

package ebiten

import (
_ "github.com/hajimehoshi/file2byteslice"
)

0 comments on commit e41a8be

Please sign in to comment.