iface

package
v0.1.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface struct {
	Name    string   // 인터페이스 이름 (e.g. "UserModel")
	Methods []string // 메서드 이름 순서 (원본 선언 순서 보존)
}

Interface는 specs/model/*.go 에 선언된 Go 인터페이스 하나를 나타낸다.

func ParseDir

func ParseDir(dir string) ([]Interface, []diagnostic.Diagnostic)

ParseDir는 주어진 디렉토리의 *.go 파일을 순회하며 Go 인터페이스를 추출한다. 디렉토리가 없으면 nil, nil 을 반환한다.

func ParseFile

func ParseFile(path string) ([]Interface, []diagnostic.Diagnostic)

ParseFile는 단일 Go 소스 파일을 파싱해 인터페이스 선언을 추출한다.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL