feat: tag parsing

This commit is contained in:
2025-02-13 19:21:14 +07:00
parent 5380bd109a
commit a1df30a318
7 changed files with 51 additions and 17 deletions

View File

@@ -2,17 +2,17 @@ package utils
import (
"bufio"
"nto_cli/types"
"nto_cli/entities"
"os"
"strings"
)
func GetStructFields(file *os.File, structName string) []types.Field {
func GetStructFields(file *os.File, structName string) []entities.Field {
bracketsCount := 1
structFound := false
structFields := []types.Field{}
structFields := []entities.Field{}
scanner := bufio.NewScanner(file)
for i := 1; scanner.Scan() && bracketsCount > 0; i++ {