mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-07 02:58:02 +00:00
Some checks failed
CodeQL / Analyze (javascript-typescript) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
Gitleaks / gitleaks (push) Waiting to run
Publish / Classify release event (push) Waiting to run
Publish / RC guard (marker + release-PR skip) (push) Blocked by required conditions
Publish / ci (push) Blocked by required conditions
Publish / Publish to npm (push) Blocked by required conditions
Publish / Build & Push RC Docker images (push) Blocked by required conditions
Scorecard / Scorecard analysis (push) Waiting to run
Trivy Image Scan / Trivy (gitnexus-cli) (push) Waiting to run
Trivy Image Scan / Trivy (gitnexus-web) (push) Waiting to run
Devcontainer Smoke / Config-transform unit tests (push) Has been cancelled
Devcontainer Smoke / Build devcontainer image (push) Has been cancelled
20 lines
365 B
Go
20 lines
365 B
Go
package main
|
|
|
|
import (
|
|
"github.com/example/gostruct/api"
|
|
"github.com/example/gostruct/contracts"
|
|
"github.com/example/gostruct/store"
|
|
)
|
|
|
|
func precise(user api.User) {
|
|
var saver api.Saver = store.GoodStore{}
|
|
saver.Save(user)
|
|
}
|
|
|
|
func fallback(saver api.Saver, user api.User) {
|
|
saver.Save(user)
|
|
}
|
|
|
|
func fallbackReadCloser(rc contracts.ReadCloser) {
|
|
rc.Close()
|
|
}
|