github.com/powerman/golang-tools@v0.1.11-0.20220410185822-5ad214d8d803/internal/typeparams/enabled_go118.go (about)

     1  // Copyright 2021 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build go1.18
     6  // +build go1.18
     7  
     8  package typeparams
     9  
    10  // Note: this constant is in a separate file as this is the only acceptable
    11  // diff between the <1.18 API of this package and the 1.18 API.
    12  
    13  // Enabled reports whether type parameters are enabled in the current build
    14  // environment.
    15  const Enabled = true