-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
68 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package assembuddy | ||
|
||
func RenderTable(table []string) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package assembuddy | ||
|
||
import ( | ||
"encoding/json" | ||
"io" | ||
"net/http" | ||
) | ||
|
||
type SystemCall struct { | ||
Arch string `json:"arch"` | ||
Name string `json:"name"` | ||
ReturnValue string `json:"return"` | ||
Arg0 string `json:"arg0"` | ||
Arg1 string `json:"arg1"` | ||
Arg2 string `json:"arg2"` | ||
Arg3 string `json:"arg3"` | ||
Arg4 string `json:"arg4"` | ||
Arg5 string `json:"arg5"` | ||
Nr int `json:"nr"` | ||
} | ||
|
||
func fetchData(endpointURL string) ([]SystemCall, error) { | ||
response, err := http.Get(endpointURL) | ||
if err != nil { | ||
return nil, err | ||
} | ||
defer response.Body.Close() | ||
|
||
body, err := io.ReadAll(response.Body) | ||
if err != nil { | ||
return nil, err | ||
} | ||
|
||
var systemCalls []SystemCall | ||
err = json.Unmarshal(body, &systemCalls) | ||
if err != nil { | ||
return nil, err | ||
} | ||
|
||
return systemCalls, nil | ||
} | ||
|
||
func GetFromArchitecture(arch string) ([]string, error) { | ||
return nil, nil | ||
} |
This file was deleted.
Oops, something went wrong.