@naxodev/gonx
Version:
Modern Nx plugin to use Go in a Nx workspace
11 lines (10 loc) • 424 B
TypeScript
import { FileData } from '@nx/devkit';
import { GoModule } from '../types/go-module';
import { GoImportWithModule } from '../types/go-import-with-module';
/**
* Gets a list of go imports with associated module in the file.
*
* @param fileData file object computed by Nx
* @param modules list of go modules
*/
export declare const getFileModuleImports: (fileData: FileData, modules: GoModule[]) => GoImportWithModule[];