Documentation
¶
Index ¶
- type Options
- type Writer
- func (p *Writer) CreateFile(fi *uniast.File, mod *uniast.Module) ([]byte, error)
- func (w *Writer) GetGoVersion() (string, error)
- func (w *Writer) IdToImport(id uniast.Identity) (uniast.Import, error)
- func (p *Writer) PatchImports(impts []uniast.Import, file []byte) ([]byte, error)
- func (w Writer) SplitImportsAndCodes(src string) (codes string, imports []uniast.Import, err error)
- func (w *Writer) WriteModule(repo *uniast.Repository, modPath string, outDir string) error
- func (w *Writer) WriteRepo(repo *uniast.Repository, outDir string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Writer ¶
type Writer struct { Options // contains filtered or unexported fields }
func (*Writer) CreateFile ¶
func (*Writer) GetGoVersion ¶
func (*Writer) PatchImports ¶
func (Writer) SplitImportsAndCodes ¶
receive a piece of golang code, parse it and splits the imports and codes
func (*Writer) WriteModule ¶
Click to show internal directories.
Click to hide internal directories.