version 2

This commit is contained in:
John Guo
2021-10-11 21:41:56 +08:00
parent bea54b445e
commit 1bc0635f8b
1053 changed files with 2892 additions and 2892 deletions

View File

@ -9,7 +9,7 @@ package gres
import (
"archive/zip"
"bytes"
"github.com/gogf/gf/internal/json"
"github.com/gogf/gf/v2/internal/json"
"io"
"os"
)

View File

@ -11,17 +11,17 @@ import (
"bytes"
"encoding/hex"
"fmt"
"github.com/gogf/gf/encoding/gbase64"
"github.com/gogf/gf/encoding/gcompress"
"github.com/gogf/gf/os/gfile"
"github.com/gogf/gf/text/gstr"
"github.com/gogf/gf/v2/encoding/gbase64"
"github.com/gogf/gf/v2/encoding/gcompress"
"github.com/gogf/gf/v2/os/gfile"
"github.com/gogf/gf/v2/text/gstr"
)
const (
packedGoSouceTemplate = `
package %s
import "github.com/gogf/gf/os/gres"
import "github.com/gogf/gf/v2/os/gres"
func init() {
if err := gres.Add("%s"); err != nil {

View File

@ -9,10 +9,10 @@ package gres
import (
"archive/zip"
"context"
"github.com/gogf/gf/internal/fileinfo"
"github.com/gogf/gf/internal/intlog"
"github.com/gogf/gf/os/gfile"
"github.com/gogf/gf/text/gregex"
"github.com/gogf/gf/v2/internal/fileinfo"
"github.com/gogf/gf/v2/internal/intlog"
"github.com/gogf/gf/v2/os/gfile"
"github.com/gogf/gf/v2/text/gregex"
"io"
"os"
"strings"

View File

@ -6,7 +6,7 @@
package gres
import "github.com/gogf/gf/container/gmap"
import "github.com/gogf/gf/v2/container/gmap"
const (
// Default group name for instance usage.

View File

@ -9,15 +9,15 @@ package gres
import (
"context"
"fmt"
"github.com/gogf/gf/internal/intlog"
"github.com/gogf/gf/v2/internal/intlog"
"os"
"path/filepath"
"strings"
"github.com/gogf/gf/os/gtime"
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/container/gtree"
"github.com/gogf/gf/os/gfile"
"github.com/gogf/gf/v2/container/gtree"
"github.com/gogf/gf/v2/os/gfile"
)
type Resource struct {

View File

@ -7,15 +7,15 @@
package gres_test
import (
"github.com/gogf/gf/os/gtime"
"github.com/gogf/gf/v2/os/gtime"
"strings"
"testing"
"github.com/gogf/gf/os/gfile"
"github.com/gogf/gf/v2/os/gfile"
"github.com/gogf/gf/debug/gdebug"
"github.com/gogf/gf/os/gres"
"github.com/gogf/gf/test/gtest"
"github.com/gogf/gf/v2/debug/gdebug"
"github.com/gogf/gf/v2/os/gres"
"github.com/gogf/gf/v2/test/gtest"
)
func Test_PackToGoFile(t *testing.T) {

View File

@ -7,14 +7,14 @@
package gres_test
import (
_ "github.com/gogf/gf/os/gres/testdata/data"
_ "github.com/gogf/gf/v2/os/gres/testdata/data"
"testing"
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/test/gtest"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/test/gtest"
"github.com/gogf/gf/os/gres"
"github.com/gogf/gf/v2/os/gres"
)
func Test_Basic(t *testing.T) {

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
package boot
import "github.com/gogf/gf/os/gres"
import "github.com/gogf/gf/v2/os/gres"
func init() {
if err := gres.Add("1f8b08000000000002ff0af066661161e060606048cea809604002420c9c0cc9f9796999e9fa104aaf243f37273484958191cbbb3e8e2bba38b5a82cb528964b414141c13125a528b5b818c4b45550b2b2b0b0b050024b04831505e5e79780240a4a9372329395b8b8a2cb3253cb619a5d52d3124b734adc327352418a32f352522bf44a0a7294a0b23999b99925a945c520b315a29554aa957414946a9562b9b8b8b802bcd939b81c64d7b63330308030c23fad68fe6183fb07ec072feffa389066642508cdd6e9a89a05193819208ed787382fa3041a16973cebe33c527372f21541a6859dd19acb06b68c905320a611e1940c2cf152929a5b90935892aa0f0f2bb041a2de50b728a854ebe525e6a6d6821d75255b6e263f0303033f5e477120998bc7598c4c22cc8804831cf42087c1c09246108927f9201b842d7860c1cee070016e1092ab109a4131851cea8228aee06564c0136fc43b221a6e0e564780e2083994518362062303be18c3e70a0e14577c403208c91dac6c1007b3314c666460d06702f100010000ffffc7c852f1d8030000"); err != nil {

File diff suppressed because one or more lines are too long