github.com/opentofu/opentofu@v1.7.1/internal/lang/types/type_type.go (about)

     1  // Copyright (c) The OpenTofu Authors
     2  // SPDX-License-Identifier: MPL-2.0
     3  // Copyright (c) 2023 HashiCorp, Inc.
     4  // SPDX-License-Identifier: MPL-2.0
     5  
     6  package types
     7  
     8  import (
     9  	"reflect"
    10  
    11  	"github.com/zclconf/go-cty/cty"
    12  )
    13  
    14  // TypeType is a capsule type used to represent a cty.Type as a cty.Value. This
    15  // is used by the `type()` console function to smuggle cty.Type values to the
    16  // REPL session, where it can be displayed to the user directly.
    17  var TypeType = cty.Capsule("type", reflect.TypeOf(cty.Type{}))