go.temporal.io/server/common/convert/convert.go
79 LOC · 40 covered · 39 uncovered · 13 ranges · 1703 concepts · 11 introducers · 748 tests
File neighbourhood
The centred file is linked to every concept that introduces one of its ranges, every test that runs code from the file, and the gray connector concepts standing between those tests and the file's own introducer concepts. Undirected links join concepts to every file where they introduce source and concepts to the tests they introduce; arrows show specialization between the displayed concepts and bridge only concepts omitted from this view. Concept colors match the source ranges below; connector concepts have no source color and are shown in gray.
Focused file, its introducer and connector concepts, their introduced files, and tests that run code from the file
In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the related-file, concept, and source links on this page.
Graph controls are ready.
Interactive rendering requires JavaScript and WebGL. Use the related-file, concept, and source links on this page while the interactive map is unavailable.
package convert
import (
"math"
"strconv"
)
// Int32Ceil return the int32 ceil of a float64
return int32(math.Ceil(v))
}
// Int64Ceil return the int64 ceil of a float64
return int64(math.Ceil(v))
}
return Int64ToString(int64(v))
}
func Uint64ToString(v uint64) string {
return strconv.FormatUint(v, 10)
}
return strconv.FormatInt(v, 10)
}
return Int64ToString(int64(v))
}
return strconv.FormatUint(uint64(v), 10)
}
func Int64SetToSlice(
inputs map[int64]struct{},
outputs := make([]int64, len(inputs))
i := 0
for item := range inputs {
outputs[i] = item
i++
}
return outputs
}
func Int64SliceToSet(
inputs []int64,
) map[int64]struct{} {
outputs := make(map[int64]struct{}, len(inputs))
for _, item := range inputs {
outputs[item] = struct{}{}
}
return outputs
}
func StringSetToSlice(
inputs map[string]struct{},
outputs := make([]string, len(inputs))
i := 0
for item := range inputs {
i++
}
}
func StringSliceToSet(
inputs []string,
outputs := make(map[string]struct{}, len(inputs))
for _, item := range inputs {
}
}