File: ulid.go

package info (click to toggle)
golang-github-go-openapi-strfmt 0.23.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 356 kB
  • sloc: sh: 13; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 373 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package conv

import "github.com/go-openapi/strfmt"

// ULID returns a pointer to of the ULID value passed in.
func ULID(v strfmt.ULID) *strfmt.ULID {
	return &v
}

// ULIDValue returns the value of the ULID pointer passed in or
// the default value if the pointer is nil.
func ULIDValue(v *strfmt.ULID) strfmt.ULID {
	if v == nil {
		return strfmt.ULID{}
	}

	return *v
}