Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToURLFromDesc ¶
ToURLFromDesc is a function that converts a URL string to a URL string. It takes a URL string as a parameter and returns a URL string. It simply returns the URL string that was passed as a parameter.
func ToURLFromService ¶
ToURLFromService is a function that converts a URL model to a URL protobuf message. It takes a pointer to a URL model as a parameter and returns a pointer to a URL protobuf message. It creates a timestamp for the UpdatedAt field of the URL protobuf message if the UpdatedAt field of the URL model is not nil. It then creates a new URL protobuf message with the OriginalUrl, ShortUrl, CreatedAt, and UpdatedAt fields from the URL model and returns it.
Types ¶
This section is empty.