MCPcopy
hub / github.com/gopherjs/gopherjs / getJsTag

Function getJsTag

compiler/utils.go:840–842  ·  view source on GitHub ↗
(tag string)

Source from the content-addressed store, hash-verified

838}
839
840func getJsTag(tag string) string {
841 return reflect.StructTag(tag).Get(`js`)
842}
843
844func needsSpace(c byte) bool {
845 return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '_' || c == '$' || c == '\b'

Callers 1

translateSelectionMethod · 0.85

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…