MCPcopy Create free account
hub / github.com/derekbanas/Go-Tutorial / tspToML

Function tspToML

hellogo.go:172–174  ·  view source on GitHub ↗

Convert with functions (Bad Way)

(tsp Tsp)

Source from the content-addressed store, hash-verified

170
171// Convert with functions (Bad Way)
172func tspToML(tsp Tsp) ML {
173 return ML(tsp * 4.92)
174}
175
176func TBToML(tbs TBs) ML {
177 return ML(tbs * 14.79)

Callers 1

mainFunction · 0.85

Calls 1

MLTypeAlias · 0.85

Tested by

no test coverage detected