...

Source file src/golang.org/x/tools/internal/typeparams/enabled_go118.go

Documentation: golang.org/x/tools/internal/typeparams

     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
    16  

View as plain text