]>
Commit | Line | Data |
---|---|---|
1 | // Package cty (pronounced see-tie) provides some infrastructure for a type | |
2 | // system that might be useful for applications that need to represent | |
3 | // configuration values provided by the user whose types are not known | |
4 | // at compile time, particularly if the calling application also allows | |
5 | // such values to be used in expressions. | |
6 | // | |
7 | // The type system consists of primitive types Number, String and Bool, as | |
8 | // well as List and Map collection types and Object types that can have | |
9 | // arbitrarily-typed sets of attributes. | |
10 | // | |
11 | // A set of operations is defined on these types, which is accessible via | |
12 | // the wrapper struct Value, which annotates the raw, internal representation | |
13 | // of a value with its corresponding type. | |
14 | // | |
15 | // This package is oriented towards being a building block for configuration | |
16 | // languages used to bootstrap an application. It is not optimized for use | |
17 | // in tight loops where CPU time or memory pressure are a concern. | |
18 | package cty |