Function: go-test--gb-find-package
go-test--gb-find-package is a natively compiled function defined in
gotest.el.
Signature
(go-test--gb-find-package)
Documentation
Find package of current-file.
Source Code
;; Defined in /nix/store/y8iliarhkh17m4iiwcy1hbi78r7b5489-emacs-packages-deps/share/emacs/site-lisp/elpa/gotest-20230221.945/gotest.el
(defun go-test--gb-find-package ()
"Find package of current-file."
(let* ((dir (s-concat (go-test--get-root-directory) "src/"))
(filename (buffer-file-name))
(pkg (f-filename filename)))
(s-replace-all (list (cons dir "") (cons pkg "")) filename)))