@@ -18,7 +18,7 @@ type parser struct {
1818}
1919
2020// Parse parses the api file.
21- // Depreacted : use tools/goctl/pkg/parser/api/parser/parser.go:18 instead,
21+ // Deprecated : use tools/goctl/pkg/parser/api/parser/parser.go:18 instead,
2222// it will be removed in the future.
2323func Parse (filename string ) (* spec.ApiSpec , error ) {
2424 if env .UseExperimental () {
@@ -63,14 +63,14 @@ func parseContent(content string, skipCheckTypeDeclaration bool, filename ...str
6363 return apiSpec , nil
6464}
6565
66- // Depreacted : use tools/goctl/pkg/parser/api/parser/parser.go:18 instead,
66+ // Deprecated : use tools/goctl/pkg/parser/api/parser/parser.go:18 instead,
6767// it will be removed in the future.
6868// ParseContent parses the api content
6969func ParseContent (content string , filename ... string ) (* spec.ApiSpec , error ) {
7070 return parseContent (content , false , filename ... )
7171}
7272
73- // Depreacted : use tools/goctl/pkg/parser/api/parser/parser.go:18 instead,
73+ // Deprecated : use tools/goctl/pkg/parser/api/parser/parser.go:18 instead,
7474// it will be removed in the future.
7575// ParseContentWithParserSkipCheckTypeDeclaration parses the api content with skip check type declaration
7676func ParseContentWithParserSkipCheckTypeDeclaration (content string , filename ... string ) (* spec.ApiSpec , error ) {
@@ -227,7 +227,7 @@ func (p parser) astTypeToSpec(in ast.DataType) spec.Type {
227227 return spec.PointerType {RawName : v .PointerExpr .Text (), Type : spec.DefineStruct {RawName : raw }}
228228 }
229229
230- panic (fmt .Sprintf ("unspported type %+v" , in ))
230+ panic (fmt .Sprintf ("unsupported type %+v" , in ))
231231}
232232
233233func (p parser ) stringExprs (docs []ast.Expr ) []string {
0 commit comments