Skip to content

Commit

Permalink
Merge pull request #5 from atlanhq/refactor-imports-gitignore
Browse files Browse the repository at this point in the history
Add .gitignore and update files for refactoring
  • Loading branch information
0xquark authored Mar 18, 2024
2 parents 7c6f02b + 8823b50 commit cd83ce7
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 9 deletions.
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
.atlan/
.vscode/
.idea/

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
# vendor/

# Go workspace file
go.work
Binary file removed atlan-go
Binary file not shown.
1 change: 0 additions & 1 deletion atlan/client/atlan_tag_cache.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package client

import "C"
import (
"atlan-go/atlan/model"
"encoding/json"
Expand Down
1 change: 0 additions & 1 deletion atlan/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ func (ac *AtlanClient) CallAPI(api *API, queryParams map[string]string, requestO
return nil, fmt.Errorf("error marshaling request object: %v", err)
}
params["data"] = bytes.NewBuffer(requestJSON)
//ac.logger.Printf("Request JSON: %s\n", string(requestJSON))

}

Expand Down
4 changes: 0 additions & 4 deletions atlan/model/assets/glossary.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,11 @@ func (ag *AtlasGlossary) UnmarshalJSON(data []byte) error {
ag.CreateTime = temp.Entity.CreateTime
ag.UpdateTime = temp.Entity.UpdateTime

// ag.Asset = temp.Entity.Attributes

var asset AtlasGlossaryAttributes
//fmt.Println("Json Attributes: ", string(temp.Entity.AttributesJSON))
if err := json.Unmarshal(temp.Entity.AttributesJSON, &asset); err != nil {
return err
}

//fmt.Println("Asset Unmarshalled: ", asset)
// Map Asset fields
ag.Name = asset.Name
ag.AssetIcon = asset.AssetIcon
Expand Down
3 changes: 0 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@ module atlan-go
go 1.21

require (
github.com/elastic/elastic-transport-go/v8 v8.3.0 // indirect
github.com/elastic/go-elasticsearch/v8 v8.11.1 // indirect
github.com/orsinium-labs/enum v1.3.0 // indirect
)

0 comments on commit cd83ce7

Please sign in to comment.