class Analyzer::Go::Chi

Defined in:

analyzer/analyzers/go/chi.cr

Instance Method Summary

Instance methods inherited from class Analyzer

analyze analyze, base_path : String base_path, logger : NoirLogger logger, result : Array(Endpoint) result, url : String url

Constructor methods inherited from class Analyzer

new(options : Hash(String, YAML::Any)) new

Macros inherited from class Analyzer

define_getter_methods(names) define_getter_methods

Instance Method Detail

def analyze #

[View source]
def analyze_router_function(file_path : String, func_name : String) : Array(Endpoint) #

주어진 파일 내에 정의된 router 함수의 내용을 추출하여 엔드포인트 정보로 변환


[View source]
def extract_route_path(line : String) : String #

추출: 객체.메서드("경로", ...) 형태에서 경로 추출


[View source]