...

Source file src/github.com/go-openapi/strfmt/conv/ulid.go

Documentation: github.com/go-openapi/strfmt/conv

     1  package conv
     2  
     3  import "github.com/go-openapi/strfmt"
     4  
     5  // ULID returns a pointer to of the ULID value passed in.
     6  func ULID(v strfmt.ULID) *strfmt.ULID {
     7  	return &v
     8  }
     9  
    10  // ULIDValue returns the value of the ULID pointer passed in or
    11  // the default value if the pointer is nil.
    12  func ULIDValue(v *strfmt.ULID) strfmt.ULID {
    13  	if v == nil {
    14  		return strfmt.ULID{}
    15  	}
    16  
    17  	return *v
    18  }
    19  

View as plain text