diff options
author | Runxi Yu <me@runxiyu.org> | 2024-10-21 06:42:51 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2024-10-21 06:42:51 +0800 |
commit | cbd509d6f9292faab2dc93d74c1b61c46e28cb98 (patch) | |
tree | b3de20c1851fd1fb5afc62aeddedae0defaf31b6 | |
parent | More fork URL changes (diff) | |
download | go-bareish-master.tar.gz go-bareish-master.zip |
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | cmd/gen/main.go | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -27,7 +27,7 @@ type Address { state: string country: string } -$ go run git.sr.ht/~sircmpwn/go-bare/cmd/gen -p models schema.bare models/gen.go +$ go run git.sr.ht/~runxiyu/go-bareish/cmd/gen -p models schema.bare models/gen.go ``` Then you can write something like the following: @@ -57,7 +57,7 @@ same package. See `examples/time.go` for an example of such an implementation. For many use-cases, it may be more convenient to write your types manually and use Marshal and Unmarshal directly. If you choose this approach, you may also -use `git.sr.ht/~sircmpwn/go-bare/schema.SchemaFor` to generate a BARE schema +use `git.sr.ht/~runxiyu/go-bareish/schema.SchemaFor` to generate a BARE schema language document describing your structs. ```go @@ -65,7 +65,7 @@ package main import ( "fmt" - "git.sr.ht/~sircmpwn/go-bare" + "git.sr.ht/~runxiyu/go-bareish" ) // type Coordinates { diff --git a/cmd/gen/main.go b/cmd/gen/main.go index 038af9e..b5435b7 100644 --- a/cmd/gen/main.go +++ b/cmd/gen/main.go @@ -24,7 +24,7 @@ import ( {{- if .schema.NeedErrors }} "errors" {{- end }} - "git.sr.ht/~sircmpwn/go-bare" + "git.sr.ht/~runxiyu/go-bareish" ) {{ define "type" }} |