From bd271a6e1130fec0cb1005cbf7978a522ebe5c02 Mon Sep 17 00:00:00 2001 From: Web Risk Team Date: Tue, 25 Aug 2026 07:56:53 -0700 Subject: [PATCH] No public description PiperOrigin-RevId: 970554355 --- cmd/wrserver/main.go | 11 ++++++---- cmd/wrserver/statik/statik.go | 41 ----------------------------------- go.mod | 8 ++++--- go.sum | 4 +--- 4 files changed, 13 insertions(+), 51 deletions(-) delete mode 100644 cmd/wrserver/statik/statik.go diff --git a/cmd/wrserver/main.go b/cmd/wrserver/main.go index e9691fb..cb0ba2a 100644 --- a/cmd/wrserver/main.go +++ b/cmd/wrserver/main.go @@ -189,11 +189,13 @@ package main import ( "context" + "embed" "encoding/json" "errors" "flag" "fmt" "html/template" + "io/fs" "io/ioutil" "log" "net/http" @@ -205,12 +207,13 @@ import ( "google.golang.org/protobuf/encoding/protojson" "google.golang.org/protobuf/proto" - "github.com/rakyll/statik/fs" - _ "github.com/google/webrisk/cmd/wrserver/statik" pb "github.com/google/webrisk/internal/webrisk_proto" "github.com/google/webrisk" ) +//go:embed public/* +var embedFS embed.FS + const ( statusPath = "/status" findThreatPath = "/v1/uris:search" @@ -533,13 +536,13 @@ func main() { fmt.Fprintln(os.Stderr, "Unable to initialize Web Risk client: ", err) os.Exit(1) } - statikFS, err := fs.New() + publicFS, err := fs.Sub(embedFS, "public") if err != nil { fmt.Fprintln(os.Stderr, "Unable to initialize static files: ", err) os.Exit(1) } - srv := newServer(wr, statikFS) + srv := newServer(wr, http.FS(publicFS)) exit, down := runServer(srv) signal.Notify(exit, os.Interrupt, syscall.SIGTERM, syscall.SIGQUIT) <-down diff --git a/cmd/wrserver/statik/statik.go b/cmd/wrserver/statik/statik.go deleted file mode 100644 index 8f229fa..0000000 --- a/cmd/wrserver/statik/statik.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright 2023 Google LLC -// -// 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 -// -// https://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. -// Copyright 2019 Google LLC -// -// 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 -// -// https://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. - -// Code generated by statik. DO NOT EDIT. - -// Package statik contains static assets. -package statik - -import ( - "github.com/rakyll/statik/fs" -) - - -func init() { - data := "PK\x03\x04\x14\x00\x08\x00\x08\x00\x0b\x8dmN\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00 \x00interstitial.cssUT\x05\x00\x01\x87@\x89\\\xbcXm\x8f\xdb\xb8\x11\xfe\xee_1@p\xcd&\xb0\xbc\x92\xfc\xb2^-p\xe85wh\x0b\\\x83\xe2\xae\xed\xd7\x82\x96\xc66\x1b\x8a\x14(\xcak\xe7\xb0\xff\xbd\xa0(\xc9\xa4D\xd9JQ\xdc\x97dM\x91\xc3yyf\x9e\x19>~\x84O\xa2\xb8Hz8*\x88\xc3h\x05\xff8\"|:J\x91\xd3*\x87\x1f*u\x14\xb2\\\xc0\x0f\x8cA\xbd\xa9\x04\x89%\xca\x13f\x8b\x19\x00\xfc\xb3D\x10{PGZB)*\x99\"\xa4\"C\xa0%\x1c\xc4 %\xc7\x0cv\x17 \xf0\xa7_\x7f\x0cJua\x08\x8c\xa6\xc8K\x04u$\nR\xc2a\x87Z\xd2^T<\x03\xcaA\x1d\x11~\xfe\xeb\xa7\x9f>\xff\xfa\x13\xec)\xc3\x05||\x9c\xcd\x08\xfc6\x03H\x05\x132\x01y\xd8=\xac\x9e\x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\x0c\xf9d\xcc\xb8\xc7\x84\xf1vb\xcav\x8c6\xe1\x84\x87\xb7\xa2E\xb8\xb65\x1a\xc5\xb7}\x81\x7fZ\x9b\x9e\x89\xfe\x81\xc9\x85V\xfc\xbc\xbd\x95\xc0\x9e~yB|\xd7\xfd\xf8\xae\xc3\x91\xc6\xc4\x81R8)\x12\xfe\xc9\xf6\x8eSM\x1f\x02\xbf\xabk=\x15\xfa\x86ko\xa1\xfe\x1b]\xd3\x82\xfb)\xbc\xed\x1d\xdb\x93\xd6\xc3\x17\x9e\x15\xf2\x0c\xeb7n!\x95\x0e\x8f(T@}\x99\x18\xfaj_g\xd9H\xf9\xdblG\x1cf\n\xd9\xb4\xf2k5\x9e\xf7m4H\xb1\x1e\xba\x07\xf3\xa9/\x98#L\xe6N\xa2>\x9a\xbeK\xb8v\xf1~\xf6\xfab\x19/[_LM\xbaM?\xe96\x13\xa7\x81\x1e\x85\xfd\x0b\xe5\x05j\x8a\x80\xbcy\xcd3\xafu\x0b\xf8,\xcc#\x03prZ8\xd1\xb5=1\xd2Z\x8ey\xa2s\xfd\xd2\xdf\x1f\x8e\xba\xfe\x9e\x0bM\xbfy\x0fN\xdd4\xb8g\xd88P\xff\x15dTbj\x14H\x05\xab\xf2f\xe6\xeb9\xcf\xf3`\xfc['#\x81\x08\"k\x08\x1e\x0c\x03\xbe\x91d\xd2A\x0f\xd2\xcd\xb9\xd09\xe7\x19\x85:a\xcd\xe4\xed\xbe7\x85\xee\xa2t\x86b\xff\x00\xe7y,\xf0\xbf\xfd\x8c\xc6w\xf2\x00pWG}\xf5\x7f\x03\x00\x00\xff\xffPK\x07\x08{\xdc\x9d\xdbg\x08\x00\x00E\"\x00\x00PK\x03\x04\x14\x00\x08\x00\x08\x00J\x94mN\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x11\x00 \x00interstitial.htmlUT\x05\x00\x01,M\x89\\t\x93\xc1\x92\xdb \x0c\x86\xefy\nU\xe7z=\xb9\xf5\x00>t\xfa\x06}\x02\x02J\xac.`\x06\x94d<;\xfb\xee\x1dC\xe28\x99]_,K\xbf> Y\xa8\x1fn\xb22'\x82Q\x82\x1fvjy\x81\xe3\xac\xd1KF\xf0&\x9e4R\xc4%D\xc6\x0d;\x00\x15H\x0c\xd8\xd1\xe4B\xa2\xf1,\xc7\xee\x17>\x02\xd1\x04\xd2xa\xba\xa6)\x0b\xee\xa0>v\x8aBQ4rda\xe3\xbbb\x8d'\xbd\xff \x81#\x87sx8\xae\xecd\xd4\x8e.l\xa9\xab\x1f\x8d.,\x9e\x86\xbfd\xcf\x99e\x06\xcay\xca\xaao\xde%\xee9\xbeC&\xaf\xb1\xc8\xec\xa9\x8cD\x820f:j\xec\xd3\xf9\xe0\xd9\xf6\x1c\x85r\x91\xda\xc2\x9b-\xa5\x91\x8b\xcd\x9c\x04J\xb6\xdf(\xff\x15\x1cT\xdfd\xc3N\xf5m\x14\xea0\xb9\x19\xd8i\\\x8c\x86r|\x01\xebM)\xcbI\x1f\x84\xee\x9aMJ\x94\xab\xe8&[\x12\x83\xe1\xd8\xddfs\x8b\xbd@\xec\x14\xb1J\xab5\xa8\xde\xf1\xe5I\xb8b\x02\x95bN\xb4b\x00\xd4\xb8\x1f>>\x84B\xf2F\x08pi\x9b\xe3 \xe1\xed\xf3S\xf5\xe3~\xa3LO\xc2;\xaa \xd3Z\xefQ|kn\xda\x8d\xe6\xf2rT\x00u8\x8bL\xb16\x9a2\x07\x93\xe7\xae\xb9p\xf8m\xec;\xc8\x04\xc5\x1cIf\xd57\xffW\x99\x8e\xc4\xb0/\xf7\xcc{\xc1\x12\x8c\xf7\xdd\xf2\xebq\xf8\xd3$\xcf\x94\xd7F7\xac\x152\xb2su\xc7\xbf\x1c\xc6\xaa\xde\x0ec\xc5\xde\x0c\xd5/;Pw\xa3^\xa4\xff\x01\x00\x00\xff\xffPK\x07\x08\xe9\x02\xe6\xcb\x89\x01\x00\x00Y\x03\x00\x00PK\x03\x04\x14\x00\x08\x00\x08\x00\x0b\x8dmN\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0f\x00 \x00interstitial.jsUT\x05\x00\x01\x87@\x89\\\x94UmO#G\x13\xfc\xbe\xbf\xa2\x8e\xe7\xa4\xb5y`\xcd\x11\x94HXV\xc2\xdb $\xe0\x94\xc0)\x1f\xa3\xf1N\xdb;bvf3\xd3k\xf0q\xfe\xef\xd1\xcc\xdaf\xfdF.\xdf`\xdc]\xdd]\xd5]\xdb\xeb\xe1\xc2VS\xa7\xc6\x05\xe3\xf8\xe8\xd3 \x1e\x0b\xc2E\xe1l\xa9\xea\x12g5\x17\xd6\xf9\x0cgZ#\x06y8\xf2\xe4&$\xb3\xa4\xd7\xc3WO\xb0#p\xa1<\xbc\xad]N\xc8\xad$(\x8f\xb1\x9d\x903$1\x9cB\xe0\xfc\xe1\xf2\xd0\xf3T\x13\xb4\xca\xc9x\x02\x17\x82\x91\x0b\x83!\x05\xa4\x91\xad\x8d\x842\xe0\x82p{squ\xffp\x85\x91\xd2\x94%Io\x7f?\xc1>\xce\xb4\x12\x1e#\xeb m^\x97d8\x1b\x13_i\n\x7f\x9eOod\x86\xcf\x11\x85\x9a'\x8f\xb2\xf6\x8c!\xe1\xfa\xf1\xeev\x1e\xe7\xb3\x00\xf5[%\x9c(\xf1\xea\xd9)3\x9eA\xc98\xf8\xcde3\x0d- \xc0\x16#ed\x93\xe4\x88kg\xf0\xda\x82\x9b\xc5\xbcQ\xbb,\xac\x83\xa9\xb5\x86\x1a\xc1Xn~\x0c\x00\xbddT\x9b\x9c\x955\xf8\xd8Q\xb2\x8b\xd7\x04\x98\x08\x07\xd2\x18\xec\x9a)\x04\xf6\x13`^\x9bt?\x99EFp/J\xf2\x95\xc8)\x0b\xd0\x01G\x19&\xe7Y\xb1\x12\x01q\xe5\xdf\xef\xdf\xf1:\xeb'K2\xff,\x88\x0brq\xd8J\x8c\xa3dy\xed\x1c\x19\xd6S\x0cI\x991&\x8a\x9eIB0\x04\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xbbh\xd4{/oU\xe5e2I%~\x0f\xa1\x18 \xed\x94\xca\x1c>+\xc9\xc5)\x8eO\x8e\xaa\x97.\x84\x91\xe8\x94\xe2e\xf1|r\xbc|N\xf1\xff\xf9\x12\xa51\xa2\xa0\xf0M:\xc5/?\xfd\xfc\x96\xa9\xcc\xf2\xfd\xe4\xe8\xd3\xb6T\xeb\x14\x19\x8e\x0c\x9f\xa2\xb2\x8e\x9dP\xdc=X\xa9\xda\x82\xdcU\xb5\xd5\xd8J\xd5\xd6\x1c+\xa9o\x93\x9e\x1c/\xfbZmF\x0b#}.*\xea\xa6qG\x03as\xfa\xaf\xe3\x8e\x87eo\xc9\xd6:\x9d@\xb4P\xc6\xaf\x1dO\xf8\xc2\x17\x94?E\x1f\xcd\x0ba\x82\xd5\x9b\xb0c\xf0,\xb8\x8e\xfb\xfe\x8e\x05\xe0\xc3`q\x0e\xa5\xe0\xbc\xb8\x0b\xf2u\xdeD\xec6\xcf\xe4\x17\x86\xb4\xdb\xef?\xec\xf8\xe9\x07|h\x8e\x8d\xf6\xea\xbd\xebA+\xa4\xcd=\x08\xbb\xa8\xdbH\xdf\x96=\x8b\x1e\x16\xbb\\C\xff\x97\xe66=\xed\xddf\xb6\x87\xcf\x82o5\x16\xb2\xbc\xb7M{\xba\xfcr7\xaf\x7fk\x85$\xb9nT\xad/e\xb7\x9f\xfc\x13\x00\x00\xff\xffPK\x07\x08fg\xf4\x1a\xe6\x03\x00\x00\xfd \x00\x00PK\x03\x04\x14\x00\x08\x00\x08\x00\x8b\x8emN\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00 \x00malware.tmplUT\x05\x00\x01WC\x89\\d\x91Ao\xd5@\x0c\x84\xef\xfc\n+\\@z$w\xd4W\xc4 \xce@\xc5\xd9\xddu\xb2\xab\xee\xda+\xdbQ\xfa\x14\xed\x7fGi(\x1cz\xb5\xec\xf1\xcc7\xfb\x1ei\xceL0$\xc2\x98y\x19z\xff\x95\x08,;\x01\x1e3\x08\xc2\x8e\x99\x0d*\x96\x0d\x95\xf6\x9d8\xf6\xfe\xee\xffi%3\\h\xe8\xfd\xab;\x86'R\x83\xb0\xaa\x12{\xb9\x810\xec\xfb\xf8\xa0e\xfc.\xe6\xbdC\xcdKr@w\xaa\xcd\xc1\x052\x9bc)\x10\x91\x17RY\x0d\x9a\xca\xa2X\xed8\xbe\xc9\xaa\x10\xa4\xb6\xd5I\xc1\x13:\x98\x13\x16\x10\x85H\x85\x9c\xce\x95\xcc\xb3hE\xcf\xc2\xf0a\x16\x05z\xc6\xda\n]\xa0%q\xb1\x0b44\xdbD\xa3]\xe0\xafe\xbb\x00r\x84\xa0\x14\xb3C@\x8d\xf6q|\x1b0\x92c.6\xf4\xfeMd)\x04\xbf\xe9\x11~d{\x02\xa5p\xa6\xbcCHJ\xf3uH\xee\xcd>O\xd3\xb6m\xe3\xf2\xb2=\x06\xa9\x93+\xb25T\xe2pSj\xa2>\x19\xce\xf4\xa8\xb2Y\xe6e\x8a\x19\x17\x16\xf3\x1c\xa6\xcc\x91\x9e\xc7\xe4\xb5|I\xe5J\xfc\xe9\xe1\xe7\xfbU\xcb\xf5\xa4\xd8\xfbp\x1f\xc9)8\xc5\xd7J\xee&\xbc\x7f\xc3y<\\\x1e=\xda \x0d\x95\x80\x0fB\xa5\xdc\xe0\xf8\xfd21\xa9\xe4\xb9\x92\x1d\xfcN\xd1-{zU\xfe\x07\xe3O\x00\x00\x00\xff\xffPK\x07\x08\xe5\xab\x14\xc9X\x01\x00\x00)\x02\x00\x00PK\x03\x04\x14\x00\x08\x00\x08\x00\x8d\x8emN\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x17\x00 \x00social_engineering.tmplUT\x05\x00\x01ZC\x89\\d\x91A\x8b\xd4L\x10\x86\xef\xdf\xaf(r\xfa\x841\xb9\xcb\xee\x8a \xe8Q\x94\xc5sM\xfaM\xd2L\xa7\xaa\xa9\xaa\xd98\x84\xfe\xef\x92\x11W\xd0[\xf3\xf6\xc3[bD\x8d\xfc\x02\xf2\x1c >~\xf6\x1d\x92Z\xfb\xef\x0f\xbf\xc2\x9dgt\xad}\x88\xe0\xf1\x02sR\xa1}\xef\x9f\xad\xf4\x9f\xd5\xa35Z\xf9Fay\xbc\xd0M\xaf\x94%\x94\x92f\x99\xc9uE,\xc7+\xb1\xcc0\xbd:\x95|\x01e\xf1\xe0R~1Sll 52\xbc\x80\xef\xe9M\xafF\x15\xe6*\\(\xcb\xa4\xb6rd\x15\xfa\x7fR#\xfc\xe0\xb5\x16\x9c\xa8\xb2\xfb\xa6\x96\xfcDuQ\x01\xc9u=\xc3\xfct\xd4\x8d\x86\x94\x83F\xb6\xe4o\xfa\x7f\xe5\x12\x82s\xf1\xae\xb5O\xaas\x01}\xc7\x99\xbef\xbf\x90a\x84D\xb9QB`\x0c$\xaaK\xf6\xbb\xc9\xdf\xf6==0-\x86\xe9\xb1[\"\xaa\xbf\x1b\x86m\xdb\xfa\xf9\xde\xd8\x8f\xba\x0ea,^\xd9 \xe3\xcdP\xd5bp\x9ep6\xdd<\xcb<\xbc_\xca#\xe4\xed\xf3\xb7\xee\xe9\xcb\xef)\xc7M\xfca\xe0'\xaa\x86\x80$\n\xa53Hc\x81\xd1\x86\xf3\x1d8\xc2\xd7\xc5\xbf\n\xfe\x0c\x00\x00\xff\xffPK\x07\x08\xa5\xae\x1a9>\x01\x00\x00\xee\x01\x00\x00PK\x03\x04\x14\x00\x08\x00\x08\x00\x8d\x8emN\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0d\x00 \x00unwanted.tmplUT\x05\x00\x01[C\x89\\d\x91\xc1\x8e\xd40\x0c\x86\xef<\x85U. As_\xed.\xe2\x04g`\xc5\xd9\x93\xbaI4\x89]\xd9\x1e:\xa3*\xef\x8e\xda\x15\xcba\xae\xd1g\xfb\xff\xfel\xdbDsa\x82!\x13N\x85\xd3\xd0\xfb\xafL`\xc5 p\x7f\x83(\xecX\xd8 \xa3\xb6\xf9RaQI\x8a\xcd\xb6\x8dx\xea\xfd\xdd\xff\x1d\x8d\xcc0\xd1\xd0\xfbWw\x8cgR\x03a\xd8\xb6\xf1E\xeb\xf8]\xcc{\x87VRv@wj\x8b\x83\x0b\xb8\x96x\x86\x9b\\\xa0\xb0\x0b\x146\xc7Z\x0b\xa7\xb7K\xe0\x19\xfd\xb8\xbfc\n'\x95\xd5v\x80\xae\x0bi!\x8e\x04\x1ffQ\xa0+\xb6\xa5\xd2'8\xdd f\xe4\xb4C\xc7H\x96F\x0b&\x02Q\xb0,\xeb\xeb\xb4+\x02NG\xc8\xdd\xd8\x8e\x14\x7f\x8a\x15\xff8\xde\xebM\xe4X\xaa\x0d\xbd\x7f\x13I\x95\xe07\x9d\xe0G\xb13(Eb\xaf7xD\xc8J\xf3\xd3\x90\xdd\x17{\x08a]\xd71\x1d\xf4\x18\xa5\x05Wd[P\x89\xe3Mi\x11\xf5`8\xd3?\xa10\x15L,\xe6%\x86\xc2\x13]\xc7\xec\xad~\xc9\xf5\x89\xf8\xf3\xcb\xcf\xf7\x17\xadO\xfb\xe6\x87\x10^K\xed}x\x9e\xe5\xc2\xd3\xdd\xef<\x06|\xbe+\xffM\xeao\x00\x00\x00\xff\xffPK\x07\x08\xcar\xc9\xae:\x01\x00\x00\xf8\x01\x00\x00PK\x03\x04\x14\x00\x08\x00\x08\x00\x0b\x8dmN\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14\x00 \x00warning_triangle.svgUT\x05\x00\x01\x87@\x89\\\\\xce=j\xc40\x10\xc5\xf1~O1Lj\xaf\xc6\xcf\x03\x81`m\xb1\xa4H\x91\x1c\"\xb0\x8eF\xe0/b!\x19\x9d>8\xe0f\xcb\x1f\xfcy\xbc~\xcb\x81\xf6i\x9c7\xcf\x96\xd2\xfa\xe6\\)\xe5Z\xba\xeb\xf2\x1b\x1cD\xc4m90\x95\xf8H\xe6\x19\xba\xeeL6\xc4`\xe9T\x8eC\xb9/\xbbg!!(A\x99~\xe28z~y\xbf\xabv\xaf|\xbb\x10\x11\xf5\xebw2zx\xfe\x12\x12\x83f\xe8\x87\xd4\xb3\x9d\x97y`\xf7\\\xb6\x84\xd6\x80\xcf\x16\x04:P\xa7\x16Mg\x0dr\x03CF\x9d\xa4\xd1\x7f\xaa!k=&\xfa\xe3\xf2\xed\xf2\x17\x00\x00\xff\xffPK\x07\x08\xde\xf7\xb8\xd5\xa7\x00\x00\x00\xdb\x00\x00\x00PK\x01\x02\x14\x03\x14\x00\x08\x00\x08\x00\x0b\x8dmN{\xdc\x9d\xdbg\x08\x00\x00E\"\x00\x00\x10\x00 \x00\x00\x00\x00\x00\x00\x00\x00\x00\xe8\x81\x00\x00\x00\x00interstitial.cssUT\x05\x00\x01\x87@\x89\\PK\x01\x02\x14\x03\x14\x00\x08\x00\x08\x00J\x94mN\xe9\x02\xe6\xcb\x89\x01\x00\x00Y\x03\x00\x00\x11\x00 \x00\x00\x00\x00\x00\x00\x00\x00\x00\xa0\x81\xae\x08\x00\x00interstitial.htmlUT\x05\x00\x01,M\x89\\PK\x01\x02\x14\x03\x14\x00\x08\x00\x08\x00\x0b\x8dmNfg\xf4\x1a\xe6\x03\x00\x00\xfd \x00\x00\x0f\x00 \x00\x00\x00\x00\x00\x00\x00\x00\x00\xe8\x81\x7f\n\x00\x00interstitial.jsUT\x05\x00\x01\x87@\x89\\PK\x01\x02\x14\x03\x14\x00\x08\x00\x08\x00\x8b\x8emN\xe5\xab\x14\xc9X\x01\x00\x00)\x02\x00\x00\x0c\x00 \x00\x00\x00\x00\x00\x00\x00\x00\x00\xa0\x81\xab\x0e\x00\x00malware.tmplUT\x05\x00\x01WC\x89\\PK\x01\x02\x14\x03\x14\x00\x08\x00\x08\x00\x8d\x8emN\xa5\xae\x1a9>\x01\x00\x00\xee\x01\x00\x00\x17\x00 \x00\x00\x00\x00\x00\x00\x00\x00\x00\xa0\x81F\x10\x00\x00social_engineering.tmplUT\x05\x00\x01ZC\x89\\PK\x01\x02\x14\x03\x14\x00\x08\x00\x08\x00\x8d\x8emN\xcar\xc9\xae:\x01\x00\x00\xf8\x01\x00\x00\x0d\x00 \x00\x00\x00\x00\x00\x00\x00\x00\x00\xa0\x81\xd2\x11\x00\x00unwanted.tmplUT\x05\x00\x01[C\x89\\PK\x01\x02\x14\x03\x14\x00\x08\x00\x08\x00\x0b\x8dmN\xde\xf7\xb8\xd5\xa7\x00\x00\x00\xdb\x00\x00\x00\x14\x00 \x00\x00\x00\x00\x00\x00\x00\x00\x00\xa0\x81P\x13\x00\x00warning_triangle.svgUT\x05\x00\x01\x87@\x89\\PK\x05\x06\x00\x00\x00\x00\x07\x00\x07\x00\xf5\x01\x00\x00B\x14\x00\x00\x00\x00" - fs.Register(data) -} diff --git a/go.mod b/go.mod index 2609639..a16e8ea 100644 --- a/go.mod +++ b/go.mod @@ -3,10 +3,12 @@ module github.com/google/webrisk go 1.19 require ( - github.com/google/go-cmp v0.5.5 - github.com/rakyll/statik v0.1.7 + github.com/google/go-cmp v0.5.5 golang.org/x/net v0.8.0 google.golang.org/protobuf v1.29.0 ) -require golang.org/x/text v0.8.0 // indirect \ No newline at end of file +require ( + golang.org/x/text v0.8.0 // indirect + golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 // indirect +) diff --git a/go.sum b/go.sum index ec4259f..9fa1c92 100644 --- a/go.sum +++ b/go.sum @@ -1,8 +1,6 @@ github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/rakyll/statik v0.1.7 h1:OF3QCZUuyPxuGEP7B4ypUa7sB/iHtqOTDYZXGM8KOdQ= -github.com/rakyll/statik v0.1.7/go.mod h1:AlZONWzMtEnMs7W4e/1LURLiI49pIMmp6V9Unghqrcc= golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= @@ -11,4 +9,4 @@ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IV golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.29.0 h1:44S3JjaKmLEE4YIkjzexaP+NzZsudE3Zin5Njn/pYX0= -google.golang.org/protobuf v1.29.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= \ No newline at end of file +google.golang.org/protobuf v1.29.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=