CreateLibraryIdentifier creates a LibraryIdentifier using the given information.
(name string, version pg_extension.Version)
| 170 | |
| 171 | // CreateLibraryIdentifier creates a LibraryIdentifier using the given information. |
| 172 | func CreateLibraryIdentifier(name string, version pg_extension.Version) LibraryIdentifier { |
| 173 | return LibraryIdentifier(fmt.Sprintf("00%s%010d%s", pg_extension.PLATFORM, version, name)) |
| 174 | } |
| 175 | |
| 176 | // Platform returns the platform that this LibraryIdentifier was created on. |
| 177 | func (id LibraryIdentifier) Platform() string { |
no test coverage detected