Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Value ¶
Value determines of the value is a zero value, which is the value the type has if declared without a defined value.
Example ¶
package main import ( "fmt" "reflect" "4d63.com/iszero" ) func main() { var s0 string s0Zero := iszero.Value(reflect.ValueOf(s0)) var s1 string = "hello world" s1Zero := iszero.Value(reflect.ValueOf(s1)) fmt.Println("s0", s0Zero) fmt.Println("s1", s1Zero) }
Output: s0 true s1 false
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.