types

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoBuiltinToTypescript

func GoBuiltinToTypescript(typeName string) (string, bool)

GoBuiltinToTypescript returns the TypeScript equivalent of a Go primitive type name. Returns the TypeScript type and true if found, or an empty string and false otherwise.

Only primitive types listed in goToTypescriptPrimitives are handled.

func TokenToTs

func TokenToTs(tok token.Token) (string, bool)

TokenToTs looks up the typescript version of a token.

Types

This section is empty.

Jump to

Keyboard shortcuts

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