MCPcopy Create free account
hub / github.com/apache/dubbo-go / newProgram

Function newProgram

cluster/router/script/instance/js_instance.go:56–61  ·  view source on GitHub ↗
(pg *goja.Program)

Source from the content-addressed store, hash-verified

54}
55
56func newProgram(pg *goja.Program) *program {
57 return &program{
58 pg: pg,
59 count: 1,
60 }
61}
62
63func (p *program) addCount(i int) int {
64 return int(atomic.AddInt32(&p.count, int32(i)))

Callers 1

CompileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected