]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blob - vendor/github.com/zclconf/go-cty/cty/null.go
Merge branch 'fix_read_test' of github.com:alexandreFre/terraform-provider-statuscake
[github/fretlink/terraform-provider-statuscake.git] / vendor / github.com / zclconf / go-cty / cty / null.go
1 package cty
2
3 // NullVal returns a null value of the given type. A null can be created of any
4 // type, but operations on such values will always panic. Calling applications
5 // are encouraged to use nulls only sparingly, particularly when user-provided
6 // expressions are to be evaluated, since the precence of nulls creates a
7 // much higher chance of evaluation errors that can't be caught by a type
8 // checker.
9 func NullVal(t Type) Value {
10 return Value{
11 ty: t,
12 v: nil,
13 }
14 }