GoSegmenter#
- class langchain_community.document_loaders.parsers.language.go.GoSegmenter(code: str)[source]#
Go 代码分段器。
方法
__init__(code)is_valid()make_line_comment(text)- Parameters:
code (str)
- __init__(code: str)#
- Parameters:
code (str)
- extract_functions_classes() List[str]#
- Return type:
列表[str]
- get_parser() Parser#
- Return type:
解析器
- is_valid() bool#
- Return type:
布尔
- simplify_code() str#
- Return type:
字符串