go fmt formatted project
This commit is contained in:
parent
e292b9559e
commit
e253c67052
4
Makefile
4
Makefile
|
@ -16,4 +16,6 @@ generate-code:
|
||||||
-functionFile function.go \
|
-functionFile function.go \
|
||||||
-typeFile type.go \
|
-typeFile type.go \
|
||||||
-unmarshalerFile unmarshaler.go
|
-unmarshalerFile unmarshaler.go
|
||||||
go fmt ./client
|
|
||||||
|
format-project:
|
||||||
|
go fmt ./...
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/zelenin/go-tdlib/tlparser"
|
|
||||||
"github.com/zelenin/go-tdlib/codegen"
|
"github.com/zelenin/go-tdlib/codegen"
|
||||||
|
"github.com/zelenin/go-tdlib/tlparser"
|
||||||
)
|
)
|
||||||
|
|
||||||
type config struct {
|
type config struct {
|
||||||
|
|
|
@ -4,12 +4,12 @@ import (
|
||||||
"bufio"
|
"bufio"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"flag"
|
"flag"
|
||||||
|
"github.com/zelenin/go-tdlib/tlparser"
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
"github.com/zelenin/go-tdlib/tlparser"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -2,8 +2,8 @@ package codegen
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/zelenin/go-tdlib/tlparser"
|
"github.com/zelenin/go-tdlib/tlparser"
|
||||||
"strings"
|
|
||||||
"log"
|
"log"
|
||||||
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
type tdlibFunction struct {
|
type tdlibFunction struct {
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package codegen
|
package codegen
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/zelenin/go-tdlib/tlparser"
|
|
||||||
"fmt"
|
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"fmt"
|
||||||
|
"github.com/zelenin/go-tdlib/tlparser"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GenerateUnmarshalers(schema *tlparser.Schema, packageName string) []byte {
|
func GenerateUnmarshalers(schema *tlparser.Schema, packageName string) []byte {
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package tlparser
|
package tlparser
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"bufio"
|
||||||
"io"
|
"io"
|
||||||
"strings"
|
"strings"
|
||||||
"bufio"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func Parse(reader io.Reader) (*Schema, error) {
|
func Parse(reader io.Reader) (*Schema, error) {
|
||||||
|
|
Loading…
Reference in a new issue