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 Assembly string Object string GoAssembly string Go string Package string Options []string }
Local translates a C file to Go assembly
func NewLocal ¶
func NewLocal(arch *config.Arch, source, outputDir, 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