golift.io/starr@v1.0.0/pointers.go (about)

     1  package starr
     2  
     3  // String returns a pointer to a string.
     4  func String(s string) *string {
     5  	return &s
     6  }
     7  
     8  // True returns a pointer to a true boolean.
     9  func True() *bool {
    10  	s := true
    11  	return &s
    12  }
    13  
    14  // False returns a pointer to a false boolean.
    15  func False() *bool {
    16  	s := false
    17  	return &s
    18  }
    19  
    20  // Int64 returns a pointer to the provided integer.
    21  func Int64(s int64) *int64 {
    22  	return &s
    23  }