MCPcopy Index your code
hub / github.com/zeromicro/go-zero / getAtServerValue

Method getAtServerValue

tools/goctl/pkg/parser/api/parser/api.go:234–246  ·  view source on GitHub ↗
(atServer *ast.AtServerStmt, key string)

Source from the content-addressed store, hash-verified

232}
233
234func (api *API) getAtServerValue(atServer *ast.AtServerStmt, key string) string {
235 if atServer == nil {
236 return ""
237 }
238
239 for _, val := range atServer.Values {
240 if val.Key.Token.Text == key {
241 return val.Value.Token.Text
242 }
243 }
244
245 return ""
246}
247
248func (api *API) mergeAPI(in *API) error {
249 if api.Syntax.Value.Format() != in.Syntax.Value.Format() {

Callers 1

checkServiceStmtMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected