commit
4fbb5dd875
1
Makefile
1
Makefile
|
@ -16,3 +16,4 @@ generate-code:
|
|||
-functionFile function.go \
|
||||
-typeFile type.go \
|
||||
-unmarshalerFile unmarshaler.go
|
||||
go fmt ./...
|
||||
|
|
|
@ -20350,4 +20350,3 @@ func (*TestVectorStringObject) GetClass() string {
|
|||
func (*TestVectorStringObject) GetType() string {
|
||||
return TypeTestVectorStringObject
|
||||
}
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@ import (
|
|||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/zelenin/go-tdlib/tlparser"
|
||||
"github.com/zelenin/go-tdlib/codegen"
|
||||
"github.com/zelenin/go-tdlib/tlparser"
|
||||
)
|
||||
|
||||
type config struct {
|
||||
|
|
|
@ -4,12 +4,12 @@ import (
|
|||
"bufio"
|
||||
"encoding/json"
|
||||
"flag"
|
||||
"github.com/zelenin/go-tdlib/tlparser"
|
||||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"github.com/zelenin/go-tdlib/tlparser"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -2,8 +2,8 @@ package codegen
|
|||
|
||||
import (
|
||||
"github.com/zelenin/go-tdlib/tlparser"
|
||||
"strings"
|
||||
"log"
|
||||
"strings"
|
||||
)
|
||||
|
||||
type tdlibFunction struct {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package codegen
|
||||
|
||||
import (
|
||||
"github.com/zelenin/go-tdlib/tlparser"
|
||||
"fmt"
|
||||
"bytes"
|
||||
"fmt"
|
||||
"github.com/zelenin/go-tdlib/tlparser"
|
||||
)
|
||||
|
||||
func GenerateUnmarshalers(schema *tlparser.Schema, packageName string) []byte {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package tlparser
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"io"
|
||||
"strings"
|
||||
"bufio"
|
||||
)
|
||||
|
||||
func Parse(reader io.Reader) (*Schema, error) {
|
||||
|
|
Loading…
Reference in a new issue