v0.2.2 9100209

guuid.go RawHistoryFolder

1// Package glib was automatically generated by github.com/bnema/puregotk DO NOT EDIT
2package glib
3
4import (
5	"github.com/ebitengine/purego"
6
7	"github.com/bnema/puregotk/pkg/core"
8)
9
10var xUuidStringIsValid func(string) bool
11
12// Parses the string @str and verify if it is a UUID.
13//
14// The function accepts the following syntax:
15//
16// - simple forms (e.g. `f81d4fae-7dec-11d0-a765-00a0c91e6bf6`)
17//
18// Note that hyphens are required within the UUID string itself,
19// as per the aforementioned RFC.
20func UuidStringIsValid(StrVar string) bool {
21
22	cret := xUuidStringIsValid(StrVar)
23
24	return cret
25}
26
27var xUuidStringRandom func() string
28
29// Generates a random UUID (RFC 4122 version 4) as a string. It has the same
30// randomness guarantees as #GRand, so must not be used for cryptographic
31// purposes such as key generation, nonces, salts or one-time pads.
32func UuidStringRandom() string {
33
34	cret := xUuidStringRandom()
35
36	return cret
37}
38
39func init() {
40	core.SetPackageName("GLIB", "glib-2.0")
41	core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0"})
42	var libs []uintptr
43	for _, libPath := range core.GetPaths("GLIB") {
44		lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
45		if err != nil {
46			panic(err)
47		}
48		libs = append(libs, lib)
49	}
50
51	core.PuregoSafeRegister(&xUuidStringIsValid, libs, "g_uuid_string_is_valid")
52	core.PuregoSafeRegister(&xUuidStringRandom, libs, "g_uuid_string_random")
53
54}

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 102

↑↓ moveenter openesc close