Documentation
¶
Overview ¶
Copyright 2022 gorse Project Authors Copyright 2023 Roman Atachiants
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { Name string `json:"name" uri:"name" binding:"required"` Body []byte `json:"body"` }
File represents a file
type Local ¶
type Local struct { Arch *config.Arch Clang *cc.Compiler ObjDump *cc.Disassembler Source string FuncSuffix string Assembly string Object string GoAssembly string GoStub string Package string Options []string }
Local translates a C file to Go assembly
func NewLocal ¶
func NewLocal(arch *config.Arch, source, outputDir, suffix, functionSuffix, packageName string, options ...string) (*Local, error)
NewLocal creates a new translator that uses locally installed toolchain
type Remote ¶
type Remote struct { Target string Source string Package string Output string Options []string Client *req.Client }
Remote represents a remote translator
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
example
|
|
internal
|
|
golang/archive
Package archive implements reading of archive files generated by the Go toolchain.
|
Package archive implements reading of archive files generated by the Go toolchain. |
golang/bio
Package bio implements common I/O abstractions used within the Go toolchain.
|
Package bio implements common I/O abstractions used within the Go toolchain. |
golang/bisect
Package bisect can be used by compilers and other programs to serve as a target for the bisect debugging tool.
|
Package bisect can be used by compilers and other programs to serve as a target for the bisect debugging tool. |
golang/objfile
Package objfile implements portable access to OS-specific executable files.
|
Package objfile implements portable access to OS-specific executable files. |