astx

package
v0.24.3 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddImport

func AddImport(f *ast.File, path string, addedImports map[string]bool)

AddImport adds the import declaration to the file if it's not already marked as added.

func HasImport

func HasImport(f *ast.File, path string) bool

HasImport checks if the given import path is already declared in the file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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