add tools.go

This commit is contained in:
Hajime Hoshi 2022-07-30 02:14:07 +09:00
parent 21207f827c
commit e41a8be9e4
2 changed files with 24 additions and 8 deletions

View File

@ -48,11 +48,3 @@
//go:generate gofmt -s -w . //go:generate gofmt -s -w .
package resources 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
tools.go Normal file
View File

@ -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"
)