MCPcopy Index your code
hub / github.com/TruthHun/BookStack / Encode

Function Encode

utils/gob.go:19–30  ·  view source on GitHub ↗

编码

(value interface{})

Source from the content-addressed store, hash-verified

17
18//编码
19func Encode(value interface{}) (string,error) {
20 network:= bytes.NewBuffer(nil);
21
22 enc := gob.NewEncoder(network)
23
24 err := enc.Encode(value);
25 if err != nil {
26 return "",err;
27 }
28
29 return network.String(),nil;
30}

Callers 2

loginByMemberIdMethod · 0.92
LoginMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected