converter

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToURLFromDesc

func ToURLFromDesc(url string) string

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

func ToURLFromService(url *models.URL) *desc.Url

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL