mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
12
tpl/internal/go_templates/testenv/opt.go
Normal file
12
tpl/internal/go_templates/testenv/opt.go
Normal file
@@ -0,0 +1,12 @@
|
||||
// Copyright 2022 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !noopt
|
||||
|
||||
package testenv
|
||||
|
||||
// OptimizationOff reports whether optimization is disabled.
|
||||
func OptimizationOff() bool {
|
||||
return false
|
||||
}
|
Reference in New Issue
Block a user