repo_id
stringclasses
927 values
file_path
stringlengths
99
214
content
stringlengths
2
4.15M
ivy
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/doc.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. // This is an empty package. // We have this package to convince this is buildable and go mod tidy can work. package dummy
ivy
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/go.mod
module golang.org/x/mobile/example/ivy go 1.17 require ( golang.org/x/mobile v0.0.0-20210924032853-1c027f395ef7 robpike.io/ivy v0.2.7 ) require ( golang.org/x/mod v0.4.2 // indirect golang.org/x/sys v0.0.0-20210510120138-977fb7262007 // indirect golang.org/x/tools v0.1.2 // indirect golang.org/x/xerrors v0.0.0...
ivy
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/go.sum
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang....
android
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/android/README.md
## Ivy Big Number Calculator (Android) [Ivy (robpike.io/ivy)](https://robpike.io/ivy) is an interpreter for an APL-like language written in Go. This repository hosts a minimal Android project used for its [Android version](https://play.google.com/store/apps/details?id=org.golang.ivy&hl=en_US&gl=US). ### How to build ...
android
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/android/build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { mavenCentral() google() } dependencies { classpath 'com.android.tools.build:gradle:7.0.3' } } allprojects { repositories { mavenCentral()...
android
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/android/settings.gradle
include ':app'
app
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/android/app/proguard-rules.pro
# Add project specific ProGuard rules here. # By default, the flags in this file are appended to flags specified # in /Users/hakim/Library/Android/sdk/tools/proguard/proguard-android.txt # You can edit the include path and order by changing the proguardFiles # directive in build.gradle. # # For more details, see # ht...
app
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/android/app/build.gradle
apply plugin: 'com.android.application' android { compileSdkVersion 30 defaultConfig { applicationId 'org.golang.ivy' minSdkVersion 15 targetSdkVersion 30 versionCode 4 versionName '1.4.0' } buildTypes { release { minifyEnabled true ...
main
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/android/app/src/main/AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="org.golang.ivy" android:installLocation="auto"> <!-- undo gradle's auto addition of unrequested permissions http://stackoverflow.com/qu...
ivy
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/android/app/src/main/java/org/golang/ivy/AboutIvy.java
/* * 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 org.golang.ivy; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.LayoutInflater; import andr...
ivy
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/android/app/src/main/java/org/golang/ivy/MainActivity.java
/* * 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 org.golang.ivy; import android.content.Intent; import android.content.pm.ApplicationInfo; import android.net.Uri; import android.os.AsyncTask; i...
ivy
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/android/app/src/main/java/org/golang/ivy/Help.java
/** * 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 org.golang.ivy; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.MenuItem; import android....
assets
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/android/app/src/main/assets/tape.html
<!-- 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. --> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" charset="UTF-8"> <style> body { ...
assets
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/android/app/src/main/assets/aboutivy.html
<!-- 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. --> <html> <body> <center> <h2>Ivy</h2><p> Based on <a href='https://robpike.io/ivy'>robpike.io/ivy</a> <p> Copyright 2015 The <a href='https://...
assets
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/android/app/src/main/assets/demo.ivy
# This is a demo of ivy. Type a newline to advance to each new step. Type one now. # At any time, type the word "quit" or EOF to end the demo and return to ivy. # Each step in the demo is one line of input followed by some output from ivy. Type a newline now to see. 2+2 # The first line you see above (2+2) is input; th...
values
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/android/app/src/main/res/values/strings.xml
<resources> <string name="app_name">Ivy</string> <string name="hello_world">Hello world!</string> <string name="action_settings">Settings</string> <string name="action_help">Help</string> <string name="action_about">About</string> <string name="action_clear">Clear</string> <string name="act...
values
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/android/app/src/main/res/values/dimens.xml
<resources> <!-- Default screen margins, per the Android Design guidelines. --> <dimen name="activity_horizontal_margin">16dp</dimen> <dimen name="activity_vertical_margin">16dp</dimen> </resources>
values
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/android/app/src/main/res/values/colors.xml
<?xml version="1.0" encoding="utf-8"?> <resources> <color name="body">#ffffeb</color> <color name="sky">#e2f6ff</color> <color name="blue">#1997d4</color> <color name="white">#f9f9f9</color> <color name="black">#000000</color> </resources>
values
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/android/app/src/main/res/values/styles.xml
<resources> <style name="IvyAppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <item name="colorControlActivated">@color/sky</item> <item name="colorPrimary">@color/blue</item> <item name="colorPrimaryDark">@color/blue</item> <item name="actionBarStyle">@style/MyActionBarLogo</...
drawable
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/android/app/src/main/res/drawable/circle_shape.xml
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="false"> <shape android:shape="oval"> <solid android:color="@color/blue"/> </shape> </item> <item android:state_pressed="true"> <shape android:shape="oval"> ...
values-w820dp
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/android/app/src/main/res/values-w820dp/strings.xml
<?xml version="1.0" encoding="utf-8"?> <resources> <string name="ok">OK</string> </resources>
values-w820dp
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/android/app/src/main/res/values-w820dp/dimens.xml
<resources> <!-- Example customization of dimensions originally defined in res/values/dimens.xml (such as screen margins) for screens with more than 820dp of available width. This would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). --> <dimen name="activity_horizon...
menu
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/android/app/src/main/res/menu/menu_about.xml
<menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" tools:context="org.golang.ivy.About"> <item android:id="@+id/action_settings" android:title="@string/action_settings" ...
menu
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/android/app/src/main/res/menu/menu_main.xml
<?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ivyapp="http://schemas.android.com/apk/res-auto"> <item android:id="@+id/action_clear" android:title="@string/action_clear" ivyapp:showAsAction="always" /> <item a...
layout
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/android/app/src/main/res/layout/activity_help.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="match_parent" tools:context="org.golang.ivy.Help" android:background="@color/body"> <WebView android:id="@+...
layout
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/android/app/src/main/res/layout/activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" android:id="@+id/layout" android:background="@color/body"> <Sc...
layout
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/android/app/src/main/res/layout/activity_about.xml
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/about_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#EEFFFFFF" a...
ivy
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/android/app/src/androidTest/java/org/golang/ivy/ApplicationTest.java
package org.golang.ivy; import android.app.Application; import android.test.ApplicationTestCase; /** * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> */ public class ApplicationTest extends ApplicationTestCase<Application> { public ApplicationTest() { super(Ap...
ios
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/ios/README.md
# Ivy iOS App source This directory contains the source code to the Ivy iOS app. To build, first create the Mobile.xcframework out of the Go implementation of Ivy. Run: ``` go install golang.org/x/mobile/cmd/gomobile@latest go install golang.org/x/mobile/cmd/gobind@latest ``` to install `gomobile` and `gobind`. The...
ivy
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/ios/ivy/DocsController.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. #import "DocsController.h" #import "mobile/Mobile.h" @interface DocsController () { WKWebView *webView; } @end @implementation DocsController - (void)view...
ivy
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/ios/ivy/tape.html
<!-- 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. --> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" charset="UTF-8"> <style> body { ...
ivy
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/ios/ivy/AppDelegate.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. #import "AppDelegate.h" #import "IvyController.h" @interface AppDelegate () @end @implementation AppDelegate - (BOOL)application:(UIApplication *)applicatio...
ivy
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/ios/ivy/Suggestion.h
// 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. #import <UIKit/UIKit.h> @protocol SuggestionDelegate <NSObject> @required - (void)suggestionReplace:(NSString *)text; @end @interface Suggestion : UIInputVie...
ivy
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/ios/ivy/IvyController.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. #import "IvyController.h" #import "mobile/Mobile.h" @interface IvyController () @end @implementation IvyController { NSArray *demo_lines; int demo_index;...
ivy
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/ios/ivy/IvyController.h
// 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. #import <UIKit/UIKit.h> #import <WebKit/WebKit.h> #import "Suggestion.h" // IvyController displays the main app view. @interface IvyController : UIViewControll...
ivy
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/ios/ivy/DocsController.h
// 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. #import <WebKit/WebKit.h> // DocsController displays the documentation page. @interface DocsController : UIViewController @end
ivy
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/ios/ivy/Suggestion.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. #import "Suggestion.h" #define maxSuggestions 4 + 3 @implementation Suggestion { NSString *text; NSRange range; NSMutableOrderedSet *options; NSMutab...
ivy
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/ios/ivy/Info.plist
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>UIUserInterfaceStyle</key> <string>Light</string> <key>CFBundleDevelopmentRegion</key> <string>en</string> <key>CFBundleDisplayName</key> ...
ivy
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/ios/ivy/AppDelegate.h
// 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. #import <WebKit/WebKit.h> #import "IvyController.h" #import "Suggestion.h" @interface AppDelegate : UIResponder <UIApplicationDelegate, UITextFieldDelegate, WK...
ivy
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/ios/ivy/main.m
#import <UIKit/UIKit.h> #import "AppDelegate.h" int main(int argc, char *argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); } }
AppIcon.appiconset
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/ios/ivy/Images.xcassets/AppIcon.appiconset/Contents.json
{ "images" : [ { "filename" : "icon-40.png", "idiom" : "iphone", "scale" : "2x", "size" : "20x20" }, { "filename" : "icon-60.png", "idiom" : "iphone", "scale" : "3x", "size" : "20x20" }, { "filename" : "icon-58.png", "idiom" : "iphone", ...
Base.lproj
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/ios/ivy/Base.lproj/Main.storyboard
<?xml version="1.0" encoding="UTF-8"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="19162" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="mTw-C8-NzX"> <device id...
en.lproj
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/ivy/ios/ivy/en.lproj/Main.strings
/* Class = "UITextField"; placeholder = "Type an expression"; ObjectID = "9SS-TP-C7c"; */ "9SS-TP-C7c.placeholder" = "Type an expression"; /* Class = "UIViewController"; title = "Ivy Controller"; ObjectID = "BYZ-38-t0r"; */ "BYZ-38-t0r.title" = "Ivy Controller"; /* Class = "UIBarButtonItem"; title = "Help"; ObjectID...
flappy
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/flappy/game.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 package main import ( "image" "log" "math" "math/rand" _ "image/png" "golang.org/x/mobile/asset" "golang.org/x/mobile/exp/...
flappy
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/flappy/main.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 // Flappy Gopher is a simple one-button game that uses the // mobile framework and the experimental sprite engine. package main imp...
flappy
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/flappy/main_x.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 package main func main() { }
assets
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/flappy/assets/README
The sprites were created by Renee French and are distributed under the Creative Commons Attributions 3.0 license.
android
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/bind/android/build.gradle
/* 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. */ buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.1.0' ...
android
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/bind/android/README
Go bind android app example Run $ gomobile bind -o app/hello.aar golang.org/x/mobile/example/bind/hello and import this project in Android Studio. If you prefer the command line, use gradle to build directly. Note that you need to run gomobile bind again every time you make a change to Go code.
android
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/bind/android/settings.gradle
/* 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. */ include ':app'
app
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/bind/android/app/build.gradle
/* * 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. */ apply plugin: 'com.android.application' repositories { flatDir { dirs '.' } } android { compileSdkVersion 27 defaultConfig { ...
main
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/bind/android/app/src/main/AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?> <!-- 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. --> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.golang.example.bind" > ...
bind
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/bind/android/app/src/main/java/org/golang/example/bind/MainActivity.java
/* * 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 org.golang.example.bind; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; import hello.Hello; public cla...
values
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/bind/android/app/src/main/res/values/dimens.xml
<!-- 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. --> <resources> <!-- Default screen margins, per the Android Design guidelines. --> <dimen name="activity_horizontal_margin">16dp</dimen> <dim...
layout
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/bind/android/app/src/main/res/layout/activity_main.xml
<!-- 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. --> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="ma...
ios
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/bind/ios/README
1. Use gomobile bind to bind the golang.org/x/mobile/example/bind/hello package. The following command will create an XCFramework in the current directory. $ gomobile bind -target=ios golang.org/x/mobile/example/bind/hello 2. Open the Xcode project by double clicking on bind.xcodeproj. The project will not bu...
bind
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/bind/ios/bind/AppDelegate.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. #import "AppDelegate.h" @interface AppDelegate () @end @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOpt...
bind
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/bind/ios/bind/ViewController.h
// 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. #import <UIKit/UIKit.h> @interface ViewController : UIViewController @property (strong, nonatomic) IBOutlet UILabel *textLabel; @end
bind
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/bind/ios/bind/Info.plist
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CFBundleDevelopmentRegion</key> <string>en</string> <key>CFBundleExecutable</key> <string>$(EXECUTABLE_NAME)</string> <key>CFBundleIdentifi...
bind
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/bind/ios/bind/ViewController.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. #import "ViewController.h" @import Hello; // Gomobile bind generated framework @interface ViewController () @end @implementation ViewController @synthesize ...
bind
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/bind/ios/bind/AppDelegate.h
// 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. #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
bind
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/bind/ios/bind/main.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. #import <UIKit/UIKit.h> #import "AppDelegate.h" int main(int argc, char * argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NS...
Base.lproj
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/bind/ios/bind/Base.lproj/Main.storyboard
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="7706" systemVersion="14E46" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0...
Base.lproj
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/bind/ios/bind/Base.lproj/LaunchScreen.xib
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6214" systemVersion="14A314h" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES"> <dependencies> ...
hello
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/bind/hello/hello.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 hello is a trivial package for gomobile bind example. package hello import "fmt" func Greetings(name string) string { return fmt.Sprintf("Hello, %...
basic
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/basic/main.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 // An app that draws a green triangle on a red background. // // In order to build this program as an Android APK, using ...
basic
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/example/basic/main_x.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 main func main() { }
bind
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/bind.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 bind implements a code generator for gobind. // // See the documentation on the gobind command for usage details // and the list of currently support...
bind
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/genobjcw.go
// Copyright 2016 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 bind import ( "path" "strings" "golang.org/x/mobile/internal/importers/objc" ) type ( // ObjCWrapper generates Go and C stubs for ObjC interfaces...
bind
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/implicit.go
// This file imports implicit dependencies required by generated code. //go:build mobile_implicit package bind import ( _ "golang.org/x/mobile/bind/seq" )
bind
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/genclasses.go
// Copyright 2016 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 bind import ( "fmt" "path" "reflect" "strings" "unicode" "unicode/utf8" "golang.org/x/mobile/internal/importers" "golang.org/x/mobile/internal...
bind
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/types.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 bind import ( "fmt" "go/types" "log" "strings" ) type ifaceSummary struct { iface *types.Interface callable []*types.Func implemen...
bind
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/genjava.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 bind import ( "fmt" "go/constant" "go/types" "html" "math" "reflect" "regexp" "strings" "golang.org/x/mobile/internal/importers/java" ) // T...
bind
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/genobjc.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 bind import ( "fmt" "go/constant" "go/types" "math" "strings" "golang.org/x/mobile/internal/importers/objc" ) // TODO(hyangah): handle method n...
bind
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/gengo.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 bind import ( "bytes" "fmt" "go/types" "strings" ) type goGen struct { *Generator // imports is the list of imports, in the form // "the/packa...
bind
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/printer.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 bind import ( "bytes" "fmt" ) type Printer struct { Buf *bytes.Buffer IndentEach []byte indentText []byte needIndent bool } func (p *Pri...
bind
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/seq.go.support
// Copyright 2016 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 main // Go support functions for generated Go bindings. This file is // copied into the generated main package, and compiled along // with the bindings...
bind
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/gen.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 bind import ( "bytes" "fmt" "go/ast" "go/token" "go/types" "io" "regexp" "strings" "unicode" "unicode/utf8" ) type ( ErrorList []error //...
bind
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/bind_test.go
package bind import ( "bytes" "flag" "go/ast" "go/build" "go/format" "go/importer" "go/parser" "go/token" "go/types" "io" "io/ioutil" "log" "os" "os/exec" "path" "path/filepath" "runtime" "strings" "testing" "golang.org/x/mobile/internal/importers" "golang.org/x/mobile/internal/importers/java" "...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/testdata/try.go.golden
// Code generated by gobind. DO NOT EDIT. // Package main is an autogenerated binder stub for package try. // // autogenerated by gobind -lang=go try package main /* #include <stdlib.h> #include <stdint.h> #include "seq.h" #include "try.h" */ import "C" import ( _seq "golang.org/x/mobile/bind/seq" "try" ) // s...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/testdata/basictypes.java.golden
// Code generated by gobind. DO NOT EDIT. // Java class basictypes.Basictypes is a proxy for talking to a Go program. // // autogenerated by gobind -lang=java basictypes package basictypes; import go.Seq; public abstract class Basictypes { static { Seq.touch(); // for loading the native library ...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/testdata/issue29559.go
package issue29559 type AString = string func TakesAString(s AString) {}
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/testdata/structs.java.h.golden
// Code generated by gobind. DO NOT EDIT. // JNI function headers for the Go <=> Java bridge. // // autogenerated by gobind -lang=java structs #ifndef __Structs_H__ #define __Structs_H__ #include <jni.h> extern jclass proxy_class_structs_I; extern jmethodID proxy_class_structs_I_cons; void cproxystructs_I_M(int3...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/testdata/doc.objc.h.golden
// Objective-C API for talking to doc Go package. // gobind -lang=objc doc // // File is generated by gobind. Do not edit. #ifndef __Doc_H__ #define __Doc_H__ @import Foundation; #include "ref.h" #include "Universe.objc.h" @class DocNoDoc; @class DocS; @class DocS2; @protocol DocI; @class DocI; @protocol DocI <N...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/testdata/interfaces.java.h.golden
// Code generated by gobind. DO NOT EDIT. // JNI function headers for the Go <=> Java bridge. // // autogenerated by gobind -lang=java interfaces #ifndef __Interfaces_H__ #define __Interfaces_H__ #include <jni.h> extern jclass proxy_class_interfaces_Error; extern jmethodID proxy_class_interfaces_Error_cons; int3...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/testdata/issue10788.go.golden
// Code generated by gobind. DO NOT EDIT. // Package main is an autogenerated binder stub for package issue10788. // // autogenerated by gobind -lang=go issue10788 package main /* #include <stdlib.h> #include <stdint.h> #include "seq.h" #include "issue10788.h" */ import "C" import ( _seq "golang.org/x/mobile/bin...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/testdata/universe.objc.go.h.golden
// Objective-C API for talking to Go package. // gobind -lang=objc // // File is generated by gobind. Do not edit. #ifndef __GO__H__ #define __GO__H__ #include <stdint.h> #include <objc/objc.h> nstring cproxy_error_Error(int32_t refnum); #endif
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/testdata/issue12403.go.golden
// Code generated by gobind. DO NOT EDIT. // Package main is an autogenerated binder stub for package issue12403. // // autogenerated by gobind -lang=go issue12403 package main /* #include <stdlib.h> #include <stdint.h> #include "seq.h" #include "issue12403.h" */ import "C" import ( _seq "golang.org/x/mobile/bin...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/testdata/customprefixEX.objc.go.h.golden
// Objective-C API for talking to customprefix Go package. // gobind -lang=objc -prefix="EX" customprefix // // File is generated by gobind. Do not edit. #ifndef __GO_customprefix_H__ #define __GO_customprefix_H__ #include <stdint.h> #include <objc/objc.h> #endif
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/testdata/objcw.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 objc import ( "ObjC/Foundation" "ObjC/Foundation/NSMutableString" "ObjC/NetworkExtension/NEPacket" "ObjC/UIKit" ) type GoNSDate struct { Foundat...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/testdata/basictypes.go.golden
// Code generated by gobind. DO NOT EDIT. // Package main is an autogenerated binder stub for package basictypes. // // autogenerated by gobind -lang=go basictypes package main /* #include <stdlib.h> #include <stdint.h> #include "seq.h" #include "basictypes.h" */ import "C" import ( "basictypes" _seq "golang.or...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/testdata/issue29559.java.h.golden
// Code generated by gobind. DO NOT EDIT. // JNI function headers for the Go <=> Java bridge. // // autogenerated by gobind -lang=java issue29559 #ifndef __Issue29559_H__ #define __Issue29559_H__ #include <jni.h> #endif
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/testdata/keywords.objc.m.golden
// Objective-C API for talking to keywords Go package. // gobind -lang=objc keywords // // File is generated by gobind. Do not edit. #include <Foundation/Foundation.h> #include "seq.h" #include "_cgo_export.h" #include "Keywords.objc.h" @implementation KeywordsKeywordCaller { } - (nonnull instancetype)initWithRef:...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/testdata/basictypes.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 basictypes const ( AString = "a string" AnInt = 7 AnInt2 = 1<<63 - 1 AFloat = 0.2015 ARune = rune(32) ABool = tr...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/testdata/customprefixEX.objc.h.golden
// Objective-C API for talking to customprefix Go package. // gobind -lang=objc -prefix="EX" customprefix // // File is generated by gobind. Do not edit. #ifndef __EXCustomprefix_H__ #define __EXCustomprefix_H__ @import Foundation; #include "ref.h" #include "Universe.objc.h" FOUNDATION_EXPORT void EXCustomprefixF...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/testdata/customprefix.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. // Data for -pkgpath and -prefix options. package customprefix func F() { }
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/testdata/java.java.golden
// Code generated by gobind. DO NOT EDIT. // Java class java.F is a proxy for talking to a Go program. // // autogenerated by gobind -lang=java java package java; import go.Seq; public interface F extends R { public String toString(); } // Code generated by gobind. DO NOT EDIT. // Java class java.L is a...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/testdata/underscores.java.h.golden
// Code generated by gobind. DO NOT EDIT. // JNI function headers for the Go <=> Java bridge. // // autogenerated by gobind -lang=java underscores #ifndef __Underscore_pkg_H__ #define __Underscore_pkg_H__ #include <jni.h> extern jclass proxy_class_underscore_pkg_Underscore_struct; extern jmethodID proxy_class_und...
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/testdata/basictypes.java.h.golden
// Code generated by gobind. DO NOT EDIT. // JNI function headers for the Go <=> Java bridge. // // autogenerated by gobind -lang=java basictypes #ifndef __Basictypes_H__ #define __Basictypes_H__ #include <jni.h> #endif
testdata
/home/linuxreitt/Michinereitt/Tuning/Workshop_Scripts/hf-codegen/data/golang_public_repos/mobile/bind/testdata/ignore.java.h.golden
// Code generated by gobind. DO NOT EDIT. // JNI function headers for the Go <=> Java bridge. // // autogenerated by gobind -lang=java ignore #ifndef __Ignore_H__ #define __Ignore_H__ #include <jni.h> extern jclass proxy_class_ignore_I; extern jmethodID proxy_class_ignore_I_cons; // skipped method I.Argument wit...