repo_id
stringclasses
927 values
file_path
stringlengths
99
214
content
stringlengths
2
4.15M
TestXref
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/TestXref/no_xrefs.txtar
Copyright 2024 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Expected output of test TestXref/no_xrefs command: "vulnreport xref 1" -- out -- GO-9999-0001: priority is unknown - module golang.org/x/vulndb not found -- logs -- in...
TestCVE
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/pkgsite/TestCVE/ok.json
{}
TestCVE
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/pkgsite/TestCVE/err.json
{}
TestXref
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/pkgsite/TestXref/no_xrefs.json
{}
TestXref
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/pkgsite/TestXref/found_xrefs.json
{}
TestFix
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/pkgsite/TestFix/no_change.json
{ "/mod/golang.org/x/vulndb/cmd/vulnreport": true }
TestLint
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/pkgsite/TestLint/no_lints.json
{}
TestLint
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/pkgsite/TestLint/found_lints.json
{}
TestTriage
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/pkgsite/TestTriage/all.json
{}
TestOSV
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/pkgsite/TestOSV/ok.json
{}
TestOSV
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/pkgsite/TestOSV/err.json
{}
TestFix
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/TestFix/no_change.txtar
Copyright 2024 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Expected output of test TestFix/no_change command: "vulnreport fix 1" -- out -- data/reports/GO-9999-0001.yaml data/osv/GO-9999-0001.json -- logs -- info: fix: operatin...
TestLint
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/TestLint/no_lints.txtar
Copyright 2024 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Expected output of test TestLint/no_lints command: "vulnreport lint 1" -- out -- -- logs -- info: lint: operating on 1 report(s) info: lint data/reports/GO-9999-0001.ya...
TestLint
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/TestLint/found_lints.txtar
Copyright 2024 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Expected output of test TestLint/found_lints command: "vulnreport lint 4" -- out -- -- logs -- info: lint: operating on 1 report(s) info: lint data/reports/GO-9999-0004...
TestCVE
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/proxy/TestCVE/ok.json
{ "golang.org/x/vulndb/@latest": { "body": "{\"Version\":\"v0.0.0-20240625224544-50d94f131669\",\"Time\":\"2024-06-25T22:45:44Z\",\"Origin\":{\"VCS\":\"git\",\"URL\":\"https://go.googlesource.com/vulndb\",\"Hash\":\"50d94f1316694e522dc8f1c8e9225bcec9ce0952\"}}", "status_code": 200 } }
TestCVE
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/proxy/TestCVE/err.json
{ "golang.org/x/tools/@latest": { "body": "{\"Version\":\"v0.22.0\",\"Time\":\"2024-06-04T17:56:46Z\",\"Origin\":{\"VCS\":\"git\",\"URL\":\"https://go.googlesource.com/tools\",\"Ref\":\"refs/tags/v0.22.0\",\"Hash\":\"bc6931db37c33e064504346d9259b3b6d20e13f6\"}}", "status_code": 200 } }
TestXref
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/proxy/TestXref/no_xrefs.json
{}
TestXref
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/proxy/TestXref/found_xrefs.json
{}
TestFix
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/proxy/TestFix/no_change.json
{ "golang.org/x/vulndb/@latest": { "body": "{\"Version\":\"v0.0.0-20240625224544-50d94f131669\",\"Time\":\"2024-06-25T22:45:44Z\",\"Origin\":{\"VCS\":\"git\",\"URL\":\"https://go.googlesource.com/vulndb\",\"Hash\":\"50d94f1316694e522dc8f1c8e9225bcec9ce0952\"}}", "status_code": 200 } }
TestLint
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/proxy/TestLint/no_lints.json
{ "golang.org/x/vulndb/@latest": { "body": "{\"Version\":\"v0.0.0-20240625224544-50d94f131669\",\"Time\":\"2024-06-25T22:45:44Z\",\"Origin\":{\"VCS\":\"git\",\"URL\":\"https://go.googlesource.com/vulndb\",\"Hash\":\"50d94f1316694e522dc8f1c8e9225bcec9ce0952\"}}", "status_code": 200 } }
TestLint
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/proxy/TestLint/found_lints.json
{ "golang.org/x/tools/@latest": { "body": "{\"Version\":\"v0.22.0\",\"Time\":\"2024-06-04T17:56:46Z\",\"Origin\":{\"VCS\":\"git\",\"URL\":\"https://go.googlesource.com/tools\",\"Ref\":\"refs/tags/v0.22.0\",\"Hash\":\"bc6931db37c33e064504346d9259b3b6d20e13f6\"}}", "status_code": 200 } }
TestTriage
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/proxy/TestTriage/all.json
{ "collectd.org/@latest": { "body": "{\"Version\":\"v0.6.0\",\"Time\":\"2024-01-04T14:25:32Z\",\"Origin\":{\"VCS\":\"git\",\"URL\":\"https://github.com/collectd/go-collectd\",\"Ref\":\"refs/tags/v0.6.0\",\"Hash\":\"500bf49ce4792086a56b4fb89ab7f750c23bffbb\"}}", "status_code": 200 }, "collectd.org/@v/v0.6.0.mod":...
TestOSV
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/proxy/TestOSV/ok.json
{ "golang.org/x/vulndb/@latest": { "body": "{\"Version\":\"v0.0.0-20240625224544-50d94f131669\",\"Time\":\"2024-06-25T22:45:44Z\",\"Origin\":{\"VCS\":\"git\",\"URL\":\"https://go.googlesource.com/vulndb\",\"Hash\":\"50d94f1316694e522dc8f1c8e9225bcec9ce0952\"}}", "status_code": 200 } }
TestOSV
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/proxy/TestOSV/err.json
{ "golang.org/x/tools/@latest": { "body": "{\"Version\":\"v0.22.0\",\"Time\":\"2024-06-04T17:56:46Z\",\"Origin\":{\"VCS\":\"git\",\"URL\":\"https://go.googlesource.com/tools\",\"Ref\":\"refs/tags/v0.22.0\",\"Hash\":\"bc6931db37c33e064504346d9259b3b6d20e13f6\"}}", "status_code": 200 } }
TestTriage
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/TestTriage/all.txtar
Copyright 2024 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Expected output of test TestTriage/all command: "vulnreport triage " -- out -- issue test-issue-tracker/7 is likely duplicate - #7 shares alias(es) CVE-9999-0005 with...
TestOSV
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/TestOSV/ok.txtar
Copyright 2024 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Expected output of test TestOSV/ok command: "vulnreport osv 1" -- out -- data/osv/GO-9999-0001.json -- logs -- info: osv: operating on 1 report(s) info: osv data/report...
TestOSV
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/testdata/TestOSV/err.txtar
Copyright 2024 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Expected output of test TestOSV/err command: "vulnreport osv 4" -- out -- -- logs -- info: osv: operating on 1 report(s) info: osv data/reports/GO-9999-0004.yaml ERROR:...
color
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/vulnreport/color/color.go
// Copyright 2024 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package color const ( escape = "\033[" end = "m" // Reset all attributes and colors to their defaults. Reset = escape + "0" + end // Attribute codes ...
indexdb
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/indexdb/main.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Command indexdb provides a tool for creating a v1 vulnerability // database from a folder containing OSV JSON files. package main import ( "flag" "log" ...
forks
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/forks/main.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build go1.21 // Command forks determines if Go modules are similar. package main import ( "cmp" "context" "encoding/gob" "errors" "flag" "fmt" "lo...
issue
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/issue/main.go
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Command issue provides a tool for creating an issue on the x/vulndb issue // tracker. // // This is used to creating missing issues that were not created by ...
inspect
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/inspect/main.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Command inspect provides insights into the current contents of vulndb. package main import ( "context" "flag" "fmt" "log" "os" "sort" "strconv" "str...
modinfo
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/modinfo/main.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Command modinfo displays module info from the pkgsite database. // // One-time setup: install the cloud sql proxy: // // > curl -o cloud-sql-proxy https://st...
pkgsitedb
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/modinfo/internal/pkgsitedb/db_plan9.go
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build plan9 package pkgsitedb import ( "context" "database/sql" "errors" ) var errDoesNotCompile = errors.New("github.com/lib/pq does not compile on ...
pkgsitedb
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/modinfo/internal/pkgsitedb/secrets.go
// Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package pkgsitedb
pkgsitedb
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/modinfo/internal/pkgsitedb/db.go
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build !plan9 // Package pkgsitedb provides functionality for connecting to the pkgsite // database. package pkgsitedb import ( "context" "database/sql"...
pkgsitedb
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/modinfo/internal/pkgsitedb/db_test.go
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build !plan9 package pkgsitedb import ( // imported to register the postgres database driver "context" "encoding/json" "flag" "fmt" "os" "testing...
checkdb
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/checkdb/main.go
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Command checkdb validates Go vulnerability databases. package main import ( "flag" "fmt" "log" db "golang.org/x/vulndb/internal/database" ) func main(...
cve
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/cmd/cve/main.go
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Command cve provides utilities for managing CVE IDs and CVE Records via the // MITRE CVE Services API. package main import ( "bufio" "encoding/json" "err...
deploy
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/deploy/build.yaml
steps: - id: Lock name: golang:1.21.5 entrypoint: bash args: - -ec - | if [[ "$COMMIT_SHA" = '' ]]; then echo "no COMMIT_SHA, not locking" exit 0 fi go run golang.org/x/website/cmd/locktrigger@latest \ -project $PROJECT_ID -build $BUILD_ID ...
deploy
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/deploy/README.md
# Deploy The Go vulndb project is hosted on GCP and uses a continuous integration service called “Kokoro” for running tests. This directory contains files used for kokoro test job configurations and for building and deploying the vulnerability database and worker. (Additional job definitions live in an internal repos...
deploy
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/deploy/gcp-deploy.sh
#!/bin/bash # Copyright 2023 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. set -e # Deploy v1 database files. gsutil -m cp -r /workspace/db/* gs://go-vulndb # Deploy web files. # index.html is deployed as-is to avoid a name ...
deploy
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/deploy/worker.yaml
# Copyright 2022 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # This is a Cloud Build config file for the vuln worker. # Invoke locally from the command line using devtools/deploy_worker.sh. # It can also be configured to run...
deploy
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/deploy/kokoro.sh
#!/usr/bin/env bash # Copyright 2022 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. set -ex # Make a full clone of the repo so that gendb can find missing PublishDates in # reports by reading the commit history. # # Kokoro cre...
terraform
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/terraform/main.tf
# Copyright 2021 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # Terraform configuration for GCP components from this repo. terraform { required_version = ">= 1.0.9, < 2.0.0" # Store terraform state in a GCS bucket, so al...
terraform
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/terraform/README.md
# Terraform configuration for vuln worker ## External variables Some inputs to this config are not checked into the repo. You can provide them on the `terraform` command line, or create a `terraform.tfvars` file in this directory with the information, like this one: ``` prod_project = "prod-project" prod_issue_re...
environment
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/vulndb/terraform/environment/worker.tf
# Copyright 2021 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # Config for vuln worker. ################################################################ # Inputs. variable "env" { description = "environment name" type ...
mobile
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/CONTRIBUTING.md
# Contributing to Go Go is an open source project. It is the work of hundreds of contributors. We appreciate your help! ## Filing issues When [filing an issue](https://golang.org/issue/new), make sure to answer these five questions: 1. What version of Go are you using (`go version`)? 2. What operating system and...
mobile
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/PATENTS
Additional IP Rights Grant (Patents) "This implementation" means the copyrightable works distributed by Google as part of the Go project. Google hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, o...
mobile
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/go.mod
module golang.org/x/mobile go 1.18 require ( golang.org/x/exp/shiny v0.0.0-20230817173708-d852ddb80c63 golang.org/x/image v0.18.0 golang.org/x/mod v0.19.0 golang.org/x/sync v0.7.0 golang.org/x/tools v0.23.0 ) require golang.org/x/sys v0.22.0 // indirect
mobile
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/README.md
# Go support for Mobile devices [![Go Reference](https://pkg.go.dev/badge/golang.org/x/mobile.svg)](https://pkg.go.dev/golang.org/x/mobile) The Go mobile repository holds packages and build tools for using Go on mobile platforms. Package documentation as a starting point: - [Building all-Go apps](https://golang.org...
mobile
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/go.sum
golang.org/x/exp/shiny v0.0.0-20230817173708-d852ddb80c63 h1:3AGKexOYqL+ztdWdkB1bDwXgPBuTS/S8A4WzuTvJ8Cg= golang.org/x/exp/shiny v0.0.0-20230817173708-d852ddb80c63/go.mod h1:UH99kUObWAZkDnWqppdQe5ZhPYESUw8I0zVV1uWBR+0= golang.org/x/image v0.18.0 h1:jGzIakQa/ZXI1I0Fxvaa9W7yP25TqT6cHIHn+6CqvSQ= golang.org/x/image v0.18.0...
mobile
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/LICENSE
Copyright 2009 The Go Authors. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistrib...
mobile
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/codereview.cfg
issuerepo: golang/go
asset
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/asset/asset_darwin_armx.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build darwin && (arm || arm64) package asset import ( "os" "path/filepath" ) func openAsset(name string) (File, error) { if !filepath.IsAbs(name) { ...
asset
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/asset/asset.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build darwin || linux || windows package asset import "io" // Open opens a named asset. // // Errors are of type *os.PathError. // // This must not be c...
asset
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/asset/doc.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package asset provides access to application-bundled assets. // // On Android, assets are accessed via android.content.res.AssetManager. // These files are s...
asset
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/asset/asset_android.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package asset /* #cgo LDFLAGS: -landroid #include <android/asset_manager.h> #include <android/asset_manager_jni.h> #include <jni.h> #include <stdlib.h> static...
asset
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/asset/asset_desktop.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build (linux && !android) || (darwin && !arm && !arm64) || windows package asset import ( "os" "path/filepath" ) func openAsset(name string) (File, er...
exp
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/README
golang.org/x/mobile/exp contains experimental packages for mobile app development.
al
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/audio/al/al_notandroid.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build darwin || (linux && !android) || windows package al /* #cgo darwin CFLAGS: -DGOOS_darwin #cgo linux CFLAGS: -DGOOS_linux #cgo windows CFLAG...
al
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/audio/al/al.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build darwin || linux || windows // Package al provides OpenAL Soft bindings for Go. // // Calls are not safe for concurrent use. // // More information a...
al
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/audio/al/alc.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build darwin || linux || windows package al import ( "errors" "sync" "unsafe" ) var ( mu sync.Mutex device unsafe.Pointer context unsafe.Poi...
al
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/audio/al/alc_notandroid.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build darwin || (linux && !android) || windows package al /* #cgo darwin CFLAGS: -DGOOS_darwin #cgo linux CFLAGS: -DGOOS_linux #cgo windows CFLAG...
al
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/audio/al/const.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build darwin || linux || windows package al // Error returns one of these error codes. const ( InvalidName = 0xA001 InvalidEnum = 0xA002 Inv...
al
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/audio/al/alc_android.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package al /* #include <stdlib.h> #include <dlfcn.h> #include <AL/al.h> #include <AL/alc.h> ALCint call_alcGetError(LPALCGETERROR fn, ALCdevice* d) { return...
al
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/audio/al/al_android.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package al /* #include <stdlib.h> #include <string.h> #include <dlfcn.h> #include <jni.h> #include <limits.h> #include <AL/al.h> #include <AL/alc.h> void al_i...
font
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/font/font_android.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package font import "io/ioutil" func buildDefault() ([]byte, error) { return ioutil.ReadFile("/system/fonts/DroidSans.ttf") } func buildMonospace() ([]byte,...
font
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/font/doc.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package font provides platform independent access to system fonts. package font // import "golang.org/x/mobile/exp/font"
font
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/font/font.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build linux || darwin package font // Default returns the default system font. // The font is encoded as a TTF. func Default() []byte { b, err := buildD...
font
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/font/font_darwin.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package font /* #cgo darwin LDFLAGS: -framework CoreFoundation -framework CoreText #include <CoreFoundation/CFArray.h> #include <CoreFoundation/CFBase.h> #incl...
font
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/font/font_linux.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build !android package font import "io/ioutil" func buildDefault() ([]byte, error) { // Try Noto first, but fall back to Droid as the latter was deprec...
font
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/font/font_test.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build linux || darwin package font import ( "bytes" "fmt" "testing" ) func looksLikeATTF(b []byte) error { if len(b) < 256 { return fmt.Errorf("no...
debug
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/app/debug/fps.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build darwin || linux || windows // Package debug provides GL-based debugging tools for apps. package debug // import "golang.org/x/mobile/exp/app/debug" ...
f32
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/f32/vec3.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package f32 import "fmt" type Vec3 [3]float32 func (v Vec3) String() string { return fmt.Sprintf("Vec3[% 0.3f, % 0.3f, % 0.3f]", v[0], v[1], v[2]) } func (...
f32
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/f32/mat3.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package f32 import "fmt" // A Mat3 is a 3x3 matrix of float32 values. // Elements are indexed first by row then column, i.e. m[row][column]. type Mat3 [3]Vec3...
f32
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/f32/vec4.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package f32 import "fmt" type Vec4 [4]float32 func (v Vec4) String() string { return fmt.Sprintf("Vec4[% 0.3f, % 0.3f, % 0.3f, % 0.3f]", v[0], v[1], v[2], v...
f32
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/f32/f32_test.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package f32 import ( "bytes" "encoding/binary" "math" "testing" ) func TestAffineTranslationsCommute(t *testing.T) { a := &Affine{ {1, 0, 3}, {0, 1, ...
f32
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/f32/affine_test.go
package f32 import ( "math" "testing" ) var xyTests = []struct { x, y float32 }{ {0, 0}, {1, 1}, {2, 3}, {6.5, 4.3}, } var a = Affine{ {3, 4, 5}, {6, 7, 8}, } func TestInverse(t *testing.T) { wantInv := Affine{ {-2.33333, 1.33333, 1}, {2, -1, -2}, } var gotInv Affine gotInv.Inverse(&a) if !gotInv....
f32
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/f32/mat4.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package f32 import "fmt" // A Mat4 is a 4x4 matrix of float32 values. // Elements are indexed first by row then column, i.e. m[row][column]. type Mat4 [4]Vec4...
f32
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/f32/affine.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package f32 import "fmt" // An Affine is a 3x3 matrix of float32 values for which the bottom row is // implicitly always equal to [0 0 1]. // Elements are ind...
f32
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/f32/f32.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:generate go run gen.go -output table.go // Package f32 implements some linear algebra and GL helpers for float32s. // // Types defined in this package hav...
f32
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/f32/table.go
// Code generated by go run gen.go; DO NOT EDIT package f32 const sinTableLen = 4096 // sinTable[i] equals sin(i * π / sinTableLen). var sinTable = [sinTableLen]float32{ 0, 0.0007669903, 0.0015339801, 0.002300969, 0.0030679568, 0.0038349426, 0.004601926, 0.005368907, 0.0061358847, 0.0069028586, 0.00766982...
f32
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/f32/gen.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build ignore package main /* This program generates table.go. Invoke it as: go run gen.go -output table.go */ import ( "bytes" "flag" "fmt" "go/form...
glutil
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/gl/glutil/doc.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package glutil implements OpenGL utility functions. package glutil // import "golang.org/x/mobile/exp/gl/glutil"
glutil
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/gl/glutil/glimage.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build linux || darwin || windows package glutil import ( "encoding/binary" "image" "runtime" "sync" "golang.org/x/mobile/event/size" "golang.org/x...
glutil
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/gl/glutil/context_darwin_desktop.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build darwin && !ios package glutil // TODO(crawshaw): Only used in glutil tests for now (cgo is not support in _test.go files). // TODO(crawshaw): Expor...
glutil
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/gl/glutil/context_x11.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build linux && !android package glutil /* #cgo LDFLAGS: -lEGL #include <EGL/egl.h> #include <stdio.h> #include <stdlib.h> void createContext(EGLDisplay ...
glutil
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/gl/glutil/glimage_test.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build darwin || (linux && !android) // TODO(crawshaw): Run tests on other OSs when more contexts are supported. package glutil import ( "image" "image...
glutil
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/gl/glutil/glutil.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build darwin || linux || windows package glutil // import "golang.org/x/mobile/exp/gl/glutil" import ( "fmt" "golang.org/x/mobile/exp/f32" "golang.or...
sensor
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/sensor/android.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build android package sensor /* #cgo LDFLAGS: -landroid #include <stdlib.h> #include <android/sensor.h> void GoAndroid_createManager(); void GoAndroid_...
sensor
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/sensor/android.c
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build android // +build android #include <stdlib.h> #include <jni.h> #include <android/sensor.h> #define GO_ANDROID_SENSOR_LOOPER_ID 100 #define GO_AND...
sensor
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/sensor/notmobile.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build (linux && !android) || (darwin && !arm && !arm64) || windows package sensor import ( "errors" "time" ) func enable(t Type, delay time.Duration) ...
sensor
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/sensor/sensor.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package sensor provides sensor events from various movement sensors. package sensor // import "golang.org/x/mobile/exp/sensor" import ( "errors" "sync" "...
sensor
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/sensor/darwin_armx.m
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build darwin && (arm || arm64) // +build darwin // +build arm arm64 #import <CoreMotion/CoreMotion.h> CMMotionManager* manager = nil; void GoIOS_createM...
sensor
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/sensor/darwin_armx.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build darwin && (arm || arm64) package sensor /* #cgo CFLAGS: -x objective-c #cgo LDFLAGS: -framework CoreMotion #import <stdlib.h> void GoIOS_createMa...
sprite
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/sprite/sprite.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package sprite provides a 2D scene graph for rendering and animation. // // A tree of nodes is drawn by a rendering Engine, provided by another // package. T...
clock
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/sprite/clock/clock.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package clock provides a clock and time functions for a sprite engine. package clock // import "golang.org/x/mobile/exp/sprite/clock" // A Time represents a...
clock
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/sprite/clock/tween_test.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package clock import "testing" func TestLinear(t *testing.T) { t0 := Time(0) t1 := Time(6 * 60) now := Time(3 * 60) if c := Linear(t0, t1, now); c != 0.5...
clock
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/exp/sprite/clock/tween.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package clock // Standard tween functions. // // Easing means a slowing near the timing boundary, as defined by // a cubic bezier curve. Exact parameters match...