mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
update go mod
This commit is contained in:
@@ -183,7 +183,7 @@ func saveSpec(originalMarkDown []byte, contentDir, serviceName string, spec *ope
|
|||||||
|
|
||||||
err := ioutil.WriteFile(contentFile, append([]byte("---\ntitle: "+serviceName+v.titlePostFix+"\nservicename: "+serviceName+"\nlabels: "+tagsString+"\n---\n"), app...), 0777)
|
err := ioutil.WriteFile(contentFile, append([]byte("---\ntitle: "+serviceName+v.titlePostFix+"\nservicename: "+serviceName+"\nlabels: "+tagsString+"\n---\n"), app...), 0777)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("Failed to write post content to %v:\n%v\n", err)
|
fmt.Printf("Failed to write post content to %v:\n%v\n", contentFile, err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
fi, err := os.OpenFile(contentFile, os.O_APPEND|os.O_WRONLY, os.ModeAppend)
|
fi, err := os.OpenFile(contentFile, os.O_APPEND|os.O_WRONLY, os.ModeAppend)
|
||||||
|
|||||||
2
go.mod
2
go.mod
@@ -12,7 +12,7 @@ require (
|
|||||||
github.com/gosimple/slug v1.9.0
|
github.com/gosimple/slug v1.9.0
|
||||||
github.com/hailocab/go-geoindex v0.0.0-20160127134810-64631bfe9711
|
github.com/hailocab/go-geoindex v0.0.0-20160127134810-64631bfe9711
|
||||||
github.com/micro/dev v0.0.0-20201117163752-d3cfc9788dfa
|
github.com/micro/dev v0.0.0-20201117163752-d3cfc9788dfa
|
||||||
github.com/micro/micro/v3 v3.0.5-0.20210205114115-75aad3b94f08
|
github.com/micro/micro/v3 v3.1.1-0.20210301204023-e0e966d08c06
|
||||||
github.com/miekg/dns v1.1.31 // indirect
|
github.com/miekg/dns v1.1.31 // indirect
|
||||||
github.com/stoewer/go-strcase v1.2.0
|
github.com/stoewer/go-strcase v1.2.0
|
||||||
github.com/stretchr/testify v1.6.1
|
github.com/stretchr/testify v1.6.1
|
||||||
|
|||||||
2
go.sum
2
go.sum
@@ -333,6 +333,8 @@ github.com/micro/micro/v3 v3.0.5-0.20210202220323-c0f344d21cc6 h1:lK6mPBqHUIDjcR
|
|||||||
github.com/micro/micro/v3 v3.0.5-0.20210202220323-c0f344d21cc6/go.mod h1:+WoC+lHuRy8FIgJlNuLkhpmsFbylYb0vYcEgMpKT4Z4=
|
github.com/micro/micro/v3 v3.0.5-0.20210202220323-c0f344d21cc6/go.mod h1:+WoC+lHuRy8FIgJlNuLkhpmsFbylYb0vYcEgMpKT4Z4=
|
||||||
github.com/micro/micro/v3 v3.0.5-0.20210205114115-75aad3b94f08 h1:HPklGdPFUPQAG5YMQi1n8R3LBqhlWj0SzVz2W9EdwAo=
|
github.com/micro/micro/v3 v3.0.5-0.20210205114115-75aad3b94f08 h1:HPklGdPFUPQAG5YMQi1n8R3LBqhlWj0SzVz2W9EdwAo=
|
||||||
github.com/micro/micro/v3 v3.0.5-0.20210205114115-75aad3b94f08/go.mod h1:+WoC+lHuRy8FIgJlNuLkhpmsFbylYb0vYcEgMpKT4Z4=
|
github.com/micro/micro/v3 v3.0.5-0.20210205114115-75aad3b94f08/go.mod h1:+WoC+lHuRy8FIgJlNuLkhpmsFbylYb0vYcEgMpKT4Z4=
|
||||||
|
github.com/micro/micro/v3 v3.1.1-0.20210301204023-e0e966d08c06 h1:Kiegspe4Ea6hwyVWbDD6zf/DXpiVyyB2XgZuxAXGwtA=
|
||||||
|
github.com/micro/micro/v3 v3.1.1-0.20210301204023-e0e966d08c06/go.mod h1:+cr/21X4agxmBxMuztg/LOFrNBk9xLVJNq4UofWNWic=
|
||||||
github.com/miekg/dns v1.1.15/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=
|
github.com/miekg/dns v1.1.15/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=
|
||||||
github.com/miekg/dns v1.1.27/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM=
|
github.com/miekg/dns v1.1.27/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM=
|
||||||
github.com/miekg/dns v1.1.31 h1:sJFOl9BgwbYAWOGEwr61FU28pqsBNdpRBnhGXtO06Oo=
|
github.com/miekg/dns v1.1.31 h1:sJFOl9BgwbYAWOGEwr61FU28pqsBNdpRBnhGXtO06Oo=
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ require (
|
|||||||
github.com/cdipaolo/goml v0.0.0-20190412180403-e1f51f713598 // indirect
|
github.com/cdipaolo/goml v0.0.0-20190412180403-e1f51f713598 // indirect
|
||||||
github.com/cdipaolo/sentiment v0.0.0-20200617002423-c697f64e7f10
|
github.com/cdipaolo/sentiment v0.0.0-20200617002423-c697f64e7f10
|
||||||
github.com/golang/protobuf v1.4.3
|
github.com/golang/protobuf v1.4.3
|
||||||
github.com/micro/micro/v3 v3.1.0
|
github.com/micro/micro/v3 v3.1.1-0.20210301204023-e0e966d08c06
|
||||||
github.com/micro/services v0.0.0-00010101000000-000000000000
|
github.com/micro/services v0.0.0-00010101000000-000000000000
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -320,6 +320,8 @@ github.com/micro/micro/v3 v3.0.0-beta.6.0.20201016094841-ca8ffd563b2b/go.mod h1:
|
|||||||
github.com/micro/micro/v3 v3.0.5-0.20210205114115-75aad3b94f08/go.mod h1:+WoC+lHuRy8FIgJlNuLkhpmsFbylYb0vYcEgMpKT4Z4=
|
github.com/micro/micro/v3 v3.0.5-0.20210205114115-75aad3b94f08/go.mod h1:+WoC+lHuRy8FIgJlNuLkhpmsFbylYb0vYcEgMpKT4Z4=
|
||||||
github.com/micro/micro/v3 v3.1.0 h1:K1sVrB3xR/oZzbaXDSYgXbiD0f3QFNpvgOy0w013e8I=
|
github.com/micro/micro/v3 v3.1.0 h1:K1sVrB3xR/oZzbaXDSYgXbiD0f3QFNpvgOy0w013e8I=
|
||||||
github.com/micro/micro/v3 v3.1.0/go.mod h1:+cr/21X4agxmBxMuztg/LOFrNBk9xLVJNq4UofWNWic=
|
github.com/micro/micro/v3 v3.1.0/go.mod h1:+cr/21X4agxmBxMuztg/LOFrNBk9xLVJNq4UofWNWic=
|
||||||
|
github.com/micro/micro/v3 v3.1.1-0.20210301204023-e0e966d08c06 h1:Kiegspe4Ea6hwyVWbDD6zf/DXpiVyyB2XgZuxAXGwtA=
|
||||||
|
github.com/micro/micro/v3 v3.1.1-0.20210301204023-e0e966d08c06/go.mod h1:+cr/21X4agxmBxMuztg/LOFrNBk9xLVJNq4UofWNWic=
|
||||||
github.com/micro/services v0.16.0 h1:mWiv68uBrV4Z/TiE6ImLcmHJmOLM4XHI4/E82SNj5mA=
|
github.com/micro/services v0.16.0 h1:mWiv68uBrV4Z/TiE6ImLcmHJmOLM4XHI4/E82SNj5mA=
|
||||||
github.com/miekg/dns v1.1.15/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=
|
github.com/miekg/dns v1.1.15/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=
|
||||||
github.com/miekg/dns v1.1.27 h1:aEH/kqUzUxGJ/UHcEKdJY+ugH6WEzsEBBSPa8zuy1aM=
|
github.com/miekg/dns v1.1.27 h1:aEH/kqUzUxGJ/UHcEKdJY+ugH6WEzsEBBSPa8zuy1aM=
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ import (
|
|||||||
"github.com/micro/micro/v3/service/context/metadata"
|
"github.com/micro/micro/v3/service/context/metadata"
|
||||||
"github.com/micro/micro/v3/service/logger"
|
"github.com/micro/micro/v3/service/logger"
|
||||||
chat "github.com/micro/services/test/chat/proto"
|
chat "github.com/micro/services/test/chat/proto"
|
||||||
|
"google.golang.org/protobuf/types/known/timestamppb"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@@ -60,7 +61,7 @@ func main() {
|
|||||||
// send a message to the chat
|
// send a message to the chat
|
||||||
err = stream.Send(&chat.Message{
|
err = stream.Send(&chat.Message{
|
||||||
ClientId: uuid.New().String(),
|
ClientId: uuid.New().String(),
|
||||||
SentAt: time.Now().Unix(),
|
SentAt: timestamppb.New(time.Now()),
|
||||||
Subject: "Message from user one",
|
Subject: "Message from user one",
|
||||||
Text: fmt.Sprintf("Message #%v", i),
|
Text: fmt.Sprintf("Message #%v", i),
|
||||||
})
|
})
|
||||||
@@ -96,7 +97,7 @@ func main() {
|
|||||||
// send a response to the chat
|
// send a response to the chat
|
||||||
err = stream.Send(&chat.Message{
|
err = stream.Send(&chat.Message{
|
||||||
ClientId: uuid.New().String(),
|
ClientId: uuid.New().String(),
|
||||||
SentAt: time.Now().Unix(),
|
SentAt: timestamppb.New(time.Now()),
|
||||||
Subject: "Response from user two",
|
Subject: "Response from user two",
|
||||||
Text: fmt.Sprintf("Response #%v", i),
|
Text: fmt.Sprintf("Response #%v", i),
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user