GoSegmenter#
- class langchain_community.document_loaders.parsers.language.go.GoSegmenter(code: str)[source]#
Code segmenter for Go.
Methods
__init__
(code)is_valid
()make_line_comment
(text)- Parameters:
code (str) –
- __init__(code: str)#
- Parameters:
code (str) –
- extract_functions_classes() List[str] #
- Return type:
List[str]
- get_parser() Parser #
- Return type:
Parser
- is_valid() bool #
- Return type:
bool
- simplify_code() str #
- Return type:
str