Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/akyoto/q
/ StringFrom
Method
StringFrom
src/token/Source.go:35–37 ·
view source on GitHub ↗
StringFrom returns the source code.
(code []byte)
Source
from the content-addressed store, hash-verified
33
34
// StringFrom returns the source code.
35
func
(s Source) StringFrom(code []byte) string {
36
return
string(code[s.Start():s.End()])
37
}
Callers
1
TestSource
Function · 0.95
Implementers
2
Token
src/token/Token.go
Source
src/token/Source.go
Calls
2
Start
Method · 0.95
End
Method · 0.95
Tested by
1
TestSource
Function · 0.76